[Mesa-dev] [PATCH 09/30] r600g: don't enable SB for geom shaders
Dave Airlie
airlied at gmail.com
Tue Feb 4 00:53:26 CET 2014
From: Dave Airlie <airlied at redhat.com>
SB needs fixes for three GS instructions it seems to raise
them outside loops etc despite my best efforts.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/r600/r600_shader.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 73b2909..59fda7b 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -158,6 +158,9 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
return r;
}
+ /* disable SB for geom shaders - it can't handle the CF_EMIT instructions */
+ use_sb &= (shader->shader.processor_type != TGSI_PROCESSOR_GEOMETRY);
+
/* Check if the bytecode has already been built. When using the llvm
* backend, r600_shader_from_tgsi() will take care of building the
* bytecode.
--
1.8.3.1
More information about the mesa-dev
mailing list