nir/tex_instr_result_size: handle subpass_ms

I hit this and don't see any reason it shouldn't work

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29249>
This commit is contained in:
Alyssa Rosenzweig
2024-04-08 19:01:27 -04:00
parent 72326e15f3
commit 9a8cb81f61

View File

@@ -3074,6 +3074,7 @@ nir_tex_instr_result_size(const nir_tex_instr *instr)
case GLSL_SAMPLER_DIM_RECT: case GLSL_SAMPLER_DIM_RECT:
case GLSL_SAMPLER_DIM_EXTERNAL: case GLSL_SAMPLER_DIM_EXTERNAL:
case GLSL_SAMPLER_DIM_SUBPASS: case GLSL_SAMPLER_DIM_SUBPASS:
case GLSL_SAMPLER_DIM_SUBPASS_MS:
ret = 2; ret = 2;
break; break;
case GLSL_SAMPLER_DIM_3D: case GLSL_SAMPLER_DIM_3D: