diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-05 10:43:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-05 10:44:45 +0100 |
commit | 878ed2d6250701e9ccceacb102b5542986976437 (patch) | |
tree | 22c7726d827fe20cd43711198e32c46451044c2b /src/sna/gen8_render.c | |
parent | 02862faeae21bd445d61006c9aeb966fbe6a7670 (diff) |
sna/gen8: w/a for NULL depth buffer
Instead of using a NULL type depth buffer, it is strongly suggested to
use a 1x1 16-bit depth buffer instead (with address 0).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen8_render.c')
-rw-r--r-- | src/sna/gen8_render.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index 1fb9909a..bed28cab 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -640,8 +640,13 @@ static void gen8_emit_null_depth_buffer(struct sna *sna) { OUT_BATCH(GEN8_3DSTATE_DEPTH_BUFFER | (8 - 2)); +#if 0 OUT_BATCH(SURFACE_NULL << DEPTH_BUFFER_TYPE_SHIFT | DEPTHFORMAT_D32_FLOAT << DEPTH_BUFFER_FORMAT_SHIFT); +#else + OUT_BATCH(SURFACE_2D << DEPTH_BUFFER_TYPE_SHIFT | + DEPTHFORMAT_D16_UNORM << DEPTH_BUFFER_FORMAT_SHIFT); +#endif OUT_BATCH64(0); OUT_BATCH(0); OUT_BATCH(0); |