drm/radeon: add basic zmask/hiz support (v4)
authorDave Airlie <airlied@redhat.com>
Tue, 13 Jul 2010 01:11:11 +0000 (11:11 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 2 Aug 2010 01:54:26 +0000 (11:54 +1000)
commitab9e1f5966591dc3e811418e96ba04f284c52458
treed2021a631d17cb8d505b8bc8f8df39becf2cca49
parentd9fdaafbe912a34ef06ed569c6606fe2811f325b
drm/radeon: add basic zmask/hiz support (v4)

This interface allows userspace to request hyperz support, it probably
needs more locking, and really reporting that you can have hyperz is racy
since someone else might get it before you do.

v2: modify so we pass 0 valued packets to let DDX/r300c keep working.
also fixed incorrect 0x4f1c reference.

v3: fixup zb_bw_cntl so older drivers keep working

v4: add locking, fixup SC_HYPERZ_EN - patch stream to disable hiz

Signed-off-by: Dave Airlie <airlied@redhat.com>
12 files changed:
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r100d.h
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r300d.h
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c
drivers/gpu/drm/radeon/reg_srcs/r300
drivers/gpu/drm/radeon/reg_srcs/r420
drivers/gpu/drm/radeon/reg_srcs/rs600
drivers/gpu/drm/radeon/reg_srcs/rv515
include/drm/radeon_drm.h