]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/radeon/kms: add htile support to the cs checker v3
authorJerome Glisse <jglisse@redhat.com>
Wed, 21 Mar 2012 23:18:21 +0000 (19:18 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Mar 2012 08:53:22 +0000 (09:53 +0100)
commit88f50c80748bf5238c88e70ee26c68ac48b94e68
tree2b4df17fdb6c690bfdeee9dd7e5b4ed30bbf1836
parent017d213f649c6775e4a4349e50a5631a4e4c7308
drm/radeon/kms: add htile support to the cs checker v3

For 6xx+.  Required for mesa to use htile support for HiZ/HiS.
Userspace will check radeon version 2.14 with is bumped either
by tiling patch or stream out patch. This patch only add support
for htile relocation which should be enough for any userspace
to implement the hyperz (using htile buffer) feature.

v2: Jerome: Fix size checking for htile buffer.
v3: Jerome: Adapt on top of r600/evergreen cs checker changes,
            also check htile surface in case only stencil is
            present.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_cs.c
drivers/gpu/drm/radeon/evergreend.h
drivers/gpu/drm/radeon/r600_cs.c
drivers/gpu/drm/radeon/r600d.h
drivers/gpu/drm/radeon/reg_srcs/cayman
drivers/gpu/drm/radeon/reg_srcs/evergreen
drivers/gpu/drm/radeon/reg_srcs/r600