i965: fix unused variable warning in brw_emit_gpgpu_walker()
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 00:15:08 +0000 (11:15 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 23:14:05 +0000 (10:14 +1100)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_compute.c

index cde3bad7ebfa006c1eaebd5c064e3fae5ba8cabe..d1d39d30cbf574b8eeb83ea115546f03cf073c5d 100644 (file)
@@ -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 */