pan/midgard: Fix fallthrough from offset to comparator
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 20 Dec 2019 17:58:10 +0000 (12:58 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 24 Dec 2019 23:46:22 +0000 (23:46 +0000)
Fixes: ccbc9a4e678 ("pan/midgard: Implement textureOffset for 2D textures")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_compile.c

index f462100a2801719dd3981db8fc1dc110de0849aa..1e61cf77dd2d978fb5011092a54b9afe51e519be 100644 (file)
@@ -1849,6 +1849,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr,
                                 ins.swizzle[3][c] = (c > COMPONENT_Z) ? 0 : c;
 
                         emit_explicit_constant(ctx, index, index);
+                        break;
                 };
 
                 case nir_tex_src_comparator: {