freedreno/ir3: add GLSL_SAMPLER_DIM_SUBPASS to tex_info
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Dec 2019 18:58:28 +0000 (13:58 -0500)
committerJonathan Marek <jonathan@marek.ca>
Fri, 13 Dec 2019 01:33:17 +0000 (20:33 -0500)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/ir3/ir3_compiler_nir.c

index 1d888f4..398480e 100644 (file)
@@ -1895,6 +1895,8 @@ tex_info(nir_tex_instr *tex, unsigned *flagsp, unsigned *coordsp)
        case GLSL_SAMPLER_DIM_RECT:
        case GLSL_SAMPLER_DIM_EXTERNAL:
        case GLSL_SAMPLER_DIM_MS:
+       case GLSL_SAMPLER_DIM_SUBPASS:
+       case GLSL_SAMPLER_DIM_SUBPASS_MS:
                coords = 2;
                break;
        case GLSL_SAMPLER_DIM_3D: