v3d: Fix stencil sampling from a separate-stencil buffer.
authorEric Anholt <eric@anholt.net>
Fri, 28 Dec 2018 03:37:13 +0000 (19:37 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 27 Jan 2019 16:30:03 +0000 (08:30 -0800)
commitc51d125d1851b76fbee5a0d99d81e92eac705939
treef32e6b7205b7a75865c702c21d5a71af4cd9c5b9
parent8a0b0a8f3787803de6608cf124982edff634623c
v3d: Fix stencil sampling from a separate-stencil buffer.

When the sampler view is in sample-stencil mode, we need to return uint
stencil values.  To do that, fill in the format table to return R8I, and
have the sampler view point at the separate stencil buffer.

Fixes dEQP-GLES31.functional.stencil_texturing.format.depth32f_stencil8_2d
src/gallium/drivers/v3d/v3dx_format_table.c
src/gallium/drivers/v3d/v3dx_state.c