diff options
author | Dave Airlie <[email protected]> | 2013-11-28 23:38:35 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-02-05 10:49:37 +1000 |
commit | c4782a58c30473e5f67c7361c6c57160f940a978 (patch) | |
tree | 5ec001d62f70c123dcbdae6c6107e50d1502795a /src | |
parent | 5758a76d04aef90342e2b823c5020c6addda6d9c (diff) |
r600g: don't enable SB for geom shaders
SB needs fixes for three GS instructions it seems to raise
them outside loops etc despite my best efforts.
Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 73b290979fb..59fda7b7e54 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. |