freedreno/a4xx: rasterizer_discard support
authorRob Clark <robclark@freedesktop.org>
Tue, 12 Apr 2016 18:51:33 +0000 (14:51 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 13 Apr 2016 18:16:21 +0000 (14:16 -0400)
commit46e9bbc9182243c4599aa7dc811d404a18833cd7
tree186c56541920822d315e1ebed7f0b21c2d162551
parent216225ce57de3987aefc2c052eebe54b9c312bc0
freedreno/a4xx: rasterizer_discard support

This one is slightly annoying, since trying to write RBRC from draw
would clobber values set in the tiling/gmem code.  We could do command-
stream patching for RBRC, as is done on a3xx.  Although since it seems
to be a rarely used feature, it is easier just to do RMW to set/clear
the bit.

Fixes dEQP-GLES3.functional.rasterizer_discard.basic.write_depth_triangles
and related tests.

a3xx still needs the same feature, although there it probably makes more
sense to take advantage of the existing cmdstream patching which is
required for RBRC for other reasons.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a4xx/fd4_draw.c