i965/skl: Implement WaDisable1DDepthStencil
authorNeil Roberts <neil@linux.intel.com>
Mon, 2 Feb 2015 17:47:23 +0000 (17:47 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 10 Feb 2015 18:00:21 +0000 (18:00 +0000)
commit5b29b2922afe2b8167a589fc2896a071fc85b693
tree059b24f32028d974edf7fc1df909f190921a5a8c
parent1b224290fbf8f4f4ccf933a6281276931ccec9b8
i965/skl: Implement WaDisable1DDepthStencil

Skylake+ doesn't support setting a depth buffer to a 1D surface but it
does allow pretending it's a 2D texture with a height of 1 instead.

This fixes the GL_DEPTH_COMPONENT_* tests of the copyteximage piglit
test (and also seems to avoid a subsequent GPU hang).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89037
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen8_depth_state.c