From 107a8ec3b331f0b9bbaa489689ffd080100ef6e9 Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Wed, 27 Mar 2019 15:31:49 -0700 Subject: freedreno/ir3: Add workaround for VS samgq This instruction needs a workaround when used from vertex shaders. Fixes: dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler2dshadow_vertex dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler3d_fixed_vertex dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler3d_float_vertex dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler2dshadow_vertex dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler3d_fixed_vertex dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler3d_float_vertex dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.sampler2dshadow_vertex Signed-off-by: Kristian H. Kristensen Reviewed-by: Rob Clark --- src/freedreno/ir3/ir3_compiler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/freedreno/ir3/ir3_compiler.h') diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h index 1bc59970c4e..181125fa3b1 100644 --- a/src/freedreno/ir3/ir3_compiler.h +++ b/src/freedreno/ir3/ir3_compiler.h @@ -63,6 +63,10 @@ struct ir3_compiler { * index coordinate: */ bool array_index_add_half; + + /* on a6xx, rewrite samgp to sequence of samgq0-3 in vertex shaders: + */ + bool samgq_workaround; }; struct ir3_compiler * ir3_compiler_create(struct fd_device *dev, uint32_t gpu_id); -- cgit v1.2.3