asahi: Handle out-of-bounds clear_stencil

Just use the bottom 8-bits (we have only 8-bit stencil formats),
otherwise we fail an assertion in GenXML. In this case the wrapping
behaviour is ok.

Fixes:

   dEQP-GLES2.functional.depth_stencil_clear.depth_stencil
   dEQP-GLES2.functional.depth_stencil_clear.stencil

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18380>
This commit is contained in:
Alyssa Rosenzweig
2022-09-03 17:06:09 -04:00
committed by Marge Bot
parent 66f1164976
commit 7cb21eb595
+1 -1
View File
@@ -239,7 +239,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
cfg.set_when_reloading_z_1 = clear_pipeline_textures;
cfg.depth_clear_value = fui(clear_depth);
cfg.stencil_clear_value = clear_stencil;
cfg.stencil_clear_value = clear_stencil & 0xff;
cfg.partial_reload_pipeline_bind = 0xffff8212;
cfg.partial_reload_pipeline = pipeline_load;