mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
i965: Only call _mesa_load_state_parameters if prog exists.
With the automatic-TCS creation, we won't have a prog, but still need to upload push constants. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
a122af696c
commit
0d5cb4aef4
1 changed files with 2 additions and 1 deletions
|
|
@ -65,7 +65,8 @@ gen6_upload_push_constants(struct brw_context *brw,
|
|||
* basic type of PROGRAM_STATE_VAR.
|
||||
*/
|
||||
/* XXX: Should this happen somewhere before to get our state flag set? */
|
||||
_mesa_load_state_parameters(ctx, prog->Parameters);
|
||||
if (prog)
|
||||
_mesa_load_state_parameters(ctx, prog->Parameters);
|
||||
|
||||
gl_constant_value *param;
|
||||
unsigned i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue