OSDN Git Service

i965/blorp: Use the correct ISL format for combined depth/stencil
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Jan 2017 18:53:13 +0000 (10:53 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 3 Feb 2017 11:08:54 +0000 (11:08 +0000)
commit450f6aa5b20133f8d3dc3f92467f5dd19446b80d
tree6ab16c63c8df8a900d56cc3472223e6414ee7252
parentd940b91f947326bba4aeb775c32915208833817b
i965/blorp: Use the correct ISL format for combined depth/stencil

In brw_blorp_copyteximage, we use the format from the render buffer.
This could be a combined depth/stencil format.  In this case, we handle
stencil properly but we give blorp the wrong ISL format.  Specifically,
we would give blorp ISL_FORMAT_R32G32B32A32_FLOAT which is the wrong
size was causing GPU hangs.

Fixes: GL45-CTS.gtf30.GL3Tests.packed_depth_stencil.packed_depth_stencil_copyteximage

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 4c180f9633421a526f3ea6746cf38b809e7c1abb)
src/mesa/drivers/dri/i965/brw_blorp.c