diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-24 14:39:25 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-25 13:39:18 -0700 |
commit | faf8ad4875b61a546a1d197d4542ed5d77d65417 (patch) | |
tree | 89609b06ce896e5679a06bab606d15817afa3231 /src/gallium/drivers | |
parent | 124f6b541b75c96ff265b0dcf05fb40e0f1e9e29 (diff) |
panfrost/midgard: Assert guard texelFetch against cubemaps
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 336edac2171..09b11c2ddee 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -1482,6 +1482,9 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr, switch (instr->src[i].src_type) { case nir_tex_src_coord: { if (instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE) { + /* texelFetch is undefined on samplerCube */ + assert(midgard_texop != TEXTURE_OP_TEXEL_FETCH); + /* For cubemaps, we need to load coords into * special r27, and then use a special ld/st op * to select the face and copy the xy into the |