i965: Change the type of max_{vs, hs, ...}_threads variables to unsigned
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 29 Jul 2015 16:57:26 +0000 (09:57 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 29 Jul 2015 21:46:31 +0000 (14:46 -0700)
Fixes following compiler warning:
brw_cs.cpp:386:27: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_cs.cpp

index 8bbeb34075c1f8bb0e52546417e6fba2eb42becc..cd43ac5114e310570a0099cba246e9a8e88055d3 100644 (file)
@@ -1241,12 +1241,12 @@ struct brw_context
     * Platform specific constants containing the maximum number of threads
     * for each pipeline stage.
     */
-   int max_vs_threads;
-   int max_hs_threads;
-   int max_ds_threads;
-   int max_gs_threads;
-   int max_wm_threads;
-   int max_cs_threads;
+   unsigned max_vs_threads;
+   unsigned max_hs_threads;
+   unsigned max_ds_threads;
+   unsigned max_gs_threads;
+   unsigned max_wm_threads;
+   unsigned max_cs_threads;
 
    /* BRW_NEW_URB_ALLOCATIONS:
     */
index d61bba002c4297eb1c631b1dc5792f8f91f20bf2..29ee75b1e1a855575363f53a7ce13612e01e16af 100644 (file)
@@ -82,7 +82,7 @@ brw_cs_emit(struct brw_context *brw,
    prog_data->local_size[0] = cp->LocalSize[0];
    prog_data->local_size[1] = cp->LocalSize[1];
    prog_data->local_size[2] = cp->LocalSize[2];
-   int local_workgroup_size =
+   unsigned local_workgroup_size =
       cp->LocalSize[0] * cp->LocalSize[1] * cp->LocalSize[2];
 
    cfg_t *cfg = NULL;