mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 20:30:30 +01:00
gallium: fix the shader-rebind test in softpipe, as was done for the draw module.
This commit is contained in:
parent
05a8f203cd
commit
5f76a77b31
1 changed files with 1 additions and 4 deletions
|
|
@ -42,7 +42,6 @@
|
|||
struct sp_exec_fragment_shader
|
||||
{
|
||||
struct sp_fragment_shader base;
|
||||
const struct tgsi_token *machine_tokens;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -102,13 +101,11 @@ exec_prepare( const struct sp_fragment_shader *base,
|
|||
* Bind tokens/shader to the interpreter's machine state.
|
||||
* Avoid redundant binding.
|
||||
*/
|
||||
/* XXX revisit this */
|
||||
if (1 /* spefs->machine_tokens != base->shader.tokens*/) {
|
||||
if (machine->Tokens != base->shader.tokens) {
|
||||
tgsi_exec_machine_bind_shader( machine,
|
||||
base->shader.tokens,
|
||||
PIPE_MAX_SAMPLERS,
|
||||
samplers );
|
||||
spefs->machine_tokens = base->shader.tokens;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue