diff options
author | Kenneth Graunke <[email protected]> | 2019-04-06 15:57:35 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-04-06 15:58:16 -0700 |
commit | 9c46046f79a13e26440b517e73e76110ba095d00 (patch) | |
tree | c2e9e881b3e8cbebc8137f07b3058966626e538c /src/gallium/drivers/iris | |
parent | ad8c145658e1f3d84874393763ba7410d8a648e1 (diff) |
iris: Silence unused variable warnings in release mode
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r-- | src/gallium/drivers/iris/iris_program.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 3ac917c6e76..d4c4dbf3ff0 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -310,7 +310,7 @@ iris_setup_uniforms(const struct brw_compiler *compiler, unsigned *out_num_system_values, unsigned *out_num_cbufs) { - const struct gen_device_info *devinfo = compiler->devinfo; + UNUSED const struct gen_device_info *devinfo = compiler->devinfo; /* The intel compiler assumes that num_uniforms is in bytes. For * scalar that means 4 bytes per uniform slot. @@ -1336,11 +1336,10 @@ void iris_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data, uint32_t *dst) { - struct brw_stage_prog_data *prog_data = &cs_prog_data->base; assert(cs_prog_data->push.total.size > 0); assert(cs_prog_data->push.cross_thread.size == 0); assert(cs_prog_data->push.per_thread.dwords == 1); - assert(prog_data->param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID); + assert(cs_prog_data->base.param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID); for (unsigned t = 0; t < cs_prog_data->threads; t++) dst[8 * t] = t; } |