summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-28 10:09:00 -0800
committerEric Anholt <[email protected]>2018-12-30 08:05:11 -0800
commit20021e3473ae6fae7d850425e031523b1983d4e5 (patch)
tree1aa645d174ea8c6332156f4eea1a31a484030d73
parentf695d62fe5059a04d086c41f75c99390d3e8cf1b (diff)
v3d: Add support for textureSize() on MSAA textures.
Fixes failures in dEQP-GLES31.functional.shaders.builtin_functions.texture_size.samples_1_texture_2d in the GLES3.1 suite.
-rw-r--r--src/broadcom/compiler/nir_to_vir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index a5b7269441a..e01668c62c0 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -268,6 +268,7 @@ ntq_emit_txs(struct v3d_compile *c, nir_tex_instr *instr)
switch (instr->sampler_dim) {
case GLSL_SAMPLER_DIM_1D:
case GLSL_SAMPLER_DIM_2D:
+ case GLSL_SAMPLER_DIM_MS:
case GLSL_SAMPLER_DIM_3D:
case GLSL_SAMPLER_DIM_CUBE:
/* Don't minify the array size. */