mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
i965: Also fix validation of Z32F_S8 textures.
This was caught by the assertion in the next commit. It fixes the remaining piglit depthstencil-render-miplevels cases, probably by avoiding broken stencil copies in the validation path. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
46386816a7
commit
3b458416e3
1 changed files with 2 additions and 0 deletions
|
|
@ -607,6 +607,8 @@ intel_miptree_match_image(struct intel_mipmap_tree *mt,
|
|||
gl_format mt_format = mt->format;
|
||||
if (mt->format == MESA_FORMAT_X8_Z24 && mt->stencil_mt)
|
||||
mt_format = MESA_FORMAT_S8_Z24;
|
||||
if (mt->format == MESA_FORMAT_Z32_FLOAT && mt->stencil_mt)
|
||||
mt_format = MESA_FORMAT_Z32_FLOAT_X24S8;
|
||||
if (mt->etc_format != MESA_FORMAT_NONE)
|
||||
mt_format = mt->etc_format;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue