mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 16:38:09 +02:00
r600: disable SB for now on tess related shaders.
Note we have to disable on vertex shaders when we are operating in tes mode. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
8849867b8a
commit
bdf7dadda8
1 changed files with 7 additions and 0 deletions
|
|
@ -161,6 +161,13 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
|
|||
R600_ERR("translation from TGSI failed !\n");
|
||||
goto error;
|
||||
}
|
||||
if (shader->shader.processor_type == TGSI_PROCESSOR_VERTEX) {
|
||||
/* only disable for vertex shaders in tess paths */
|
||||
if (key.vs.as_ls)
|
||||
use_sb = 0;
|
||||
}
|
||||
use_sb &= (shader->shader.processor_type != TGSI_PROCESSOR_TESS_CTRL);
|
||||
use_sb &= (shader->shader.processor_type != TGSI_PROCESSOR_TESS_EVAL);
|
||||
|
||||
/* disable SB for shaders using doubles */
|
||||
use_sb &= !shader->shader.uses_doubles;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue