diff options
author | Timothy Arceri <[email protected]> | 2016-10-04 11:15:08 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-05 10:14:05 +1100 |
commit | 0e8f1eaf413d22e6860ccf4c93ccf256ad00aa6a (patch) | |
tree | 3cee88334d68360506d2782f43e95c008ba8d6fb /src/mesa | |
parent | 6fdfcd4d1cad0e83442d061bac3836b1ba1e8b04 (diff) |
i965: fix unused variable warning in brw_emit_gpgpu_walker()
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_compute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_compute.c b/src/mesa/drivers/dri/i965/brw_compute.c index cde3bad7ebf..d1d39d30cbf 100644 --- a/src/mesa/drivers/dri/i965/brw_compute.c +++ b/src/mesa/drivers/dri/i965/brw_compute.c @@ -116,7 +116,6 @@ static void brw_emit_gpgpu_walker(struct brw_context *brw) { const struct brw_cs_prog_data *prog_data = brw->cs.prog_data; - const struct gen_device_info *devinfo = &brw->screen->devinfo; const GLuint *num_groups = brw->compute.num_work_groups; uint32_t indirect_flag; @@ -149,7 +148,7 @@ brw_emit_gpgpu_walker(struct brw_context *brw) OUT_BATCH(0); /* Indirect Data Length */ OUT_BATCH(0); /* Indirect Data Start Address */ } - assert(thread_width_max <= devinfo->max_cs_threads); + assert(thread_width_max <= brw->screen->devinfo.max_cs_threads); OUT_BATCH(SET_FIELD(simd_size / 16, GPGPU_WALKER_SIMD_SIZE) | SET_FIELD(thread_width_max - 1, GPGPU_WALKER_THREAD_WIDTH_MAX)); OUT_BATCH(0); /* Thread Group ID Starting X */ |