freedreno/a6xx: stencil fixes
This fixes all but two remaining deqp-gles31 tests.
Fixes:
- dEQP-GLES31.functional.stencil_texturing.format.depth24_stencil8_2d
- dEQP-GLES31.functional.stencil_texturing.format.depth24_stencil8_2d_array
- dEQP-GLES31.functional.stencil_texturing.format.depth24_stencil8_cube
- dEQP-GLES31.functional.stencil_texturing.format.stencil_index8_2d
- dEQP-GLES31.functional.stencil_texturing.format.stencil_index8_2d_array
- dEQP-GLES31.functional.stencil_texturing.format.stencil_index8_cube
- dEQP-GLES31.functional.stencil_texturing.misc.compare_mode_effect
- dEQP-GLES31.functional.stencil_texturing.misc.base_level
- dEQP-GLES31.functional.texture.border_clamp.formats.stencil_index8.nearest_size_pot
- dEQP-GLES31.functional.texture.border_clamp.formats.stencil_index8.nearest_size_npot
- dEQP-GLES31.functional.texture.border_clamp.formats.depth24_stencil8_sample_stencil.nearest_size_pot
- dEQP-GLES31.functional.texture.border_clamp.formats.depth24_stencil8_sample_stencil.nearest_size_npot
- dEQP-GLES31.functional.texture.border_clamp.sampler.uint_stencil
Remaining:
- dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_clear
- dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_draw
The two remaining fails are UBWC issues when clearing only the stencil channel in z24s8, a case the current hw doesn't seem to support. Not really sure the best way to work around that right now.
(Sorry, ignore all but the last two patches, since this is on top of !1088 (merged))