mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
gallium/util: use uint sampler for stencil-reads
Some drivers can't use float-samplers to read integer textures, so let's make sure the stenicil-sampler has the right type. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6512>
This commit is contained in:
parent
98e866c669
commit
2c5c55e72a
1 changed files with 3 additions and 2 deletions
|
|
@ -656,7 +656,8 @@ util_make_fs_blit_msaa_depthstencil(struct pipe_context *pipe,
|
|||
"FRAG\n"
|
||||
"DCL IN[0], GENERIC[0], LINEAR\n"
|
||||
"DCL SAMP[0..1]\n"
|
||||
"DCL SVIEW[0..1], %s, FLOAT\n"
|
||||
"DCL SVIEW[0], %s, FLOAT\n"
|
||||
"DCL SVIEW[1], %s, UINT\n"
|
||||
"DCL OUT[0], POSITION\n"
|
||||
"DCL OUT[1], STENCIL\n"
|
||||
"DCL TEMP[0]\n"
|
||||
|
|
@ -674,7 +675,7 @@ util_make_fs_blit_msaa_depthstencil(struct pipe_context *pipe,
|
|||
assert(tgsi_tex == TGSI_TEXTURE_2D_MSAA ||
|
||||
tgsi_tex == TGSI_TEXTURE_2D_ARRAY_MSAA);
|
||||
|
||||
sprintf(text, shader_templ, type, type, type);
|
||||
sprintf(text, shader_templ, type, type, type, type);
|
||||
|
||||
if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) {
|
||||
assert(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue