gallium/util: declare sampler view in util_make_fs_blit_msaa_depthstencil()
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
e7b5a844e3
commit
38e831ca3d
|
@ -646,6 +646,7 @@ 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 OUT[0], POSITION\n"
|
||||
"DCL OUT[1], STENCIL\n"
|
||||
"DCL TEMP[0]\n"
|
||||
|
@ -663,7 +664,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);
|
||||
sprintf(text, shader_templ, type, type, type);
|
||||
|
||||
if (!tgsi_text_translate(text, tokens, Elements(tokens))) {
|
||||
assert(0);
|
||||
|
|
Loading…
Reference in New Issue