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
|
@ -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…
Reference in New Issue