i965/cs: Remove the prog argument from local_id_payload_dwords
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 1 Oct 2015 20:52:21 +0000 (13:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 21:22:53 +0000 (14:22 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_cs.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/gen7_cs_state.c

index 0018c04341531b8076ff091c403d105e6b3eae37..0c0ed2bc909897a264bd8b643cfcdc3760bd8af6 100644 (file)
@@ -49,8 +49,7 @@ brw_cs_emit(struct brw_context *brw,
             unsigned *final_assembly_size);
 
 unsigned
-brw_cs_prog_local_id_payload_dwords(const struct gl_program *prog,
-                                    unsigned dispatch_width);
+brw_cs_prog_local_id_payload_dwords(unsigned dispatch_width);
 
 #ifdef __cplusplus
 }
index 60905c0bc921736e39a46468224cc690e5e12b67..1354a2668d50dac6bf626a32efca78f38dcf4d75 100644 (file)
@@ -4727,7 +4727,7 @@ fs_visitor::setup_cs_payload()
 
    if (prog->SystemValuesRead & SYSTEM_BIT_LOCAL_INVOCATION_ID) {
       const unsigned local_id_dwords =
-         brw_cs_prog_local_id_payload_dwords(prog, dispatch_width);
+         brw_cs_prog_local_id_payload_dwords(dispatch_width);
       assert((local_id_dwords & 0x7) == 0);
       const unsigned local_id_regs = local_id_dwords / 8;
       payload.local_invocation_id_reg = payload.num_regs;
index 0b88b2c0e71cec521e2f75f49ff9d72a28fcce03..5edc4fc98423b08fae80cad6f34f9c7d021a81f1 100644 (file)
@@ -72,7 +72,7 @@ brw_upload_cs_state(struct brw_context *brw)
 
    if (prog->SystemValuesRead & SYSTEM_BIT_LOCAL_INVOCATION_ID) {
       local_id_dwords =
-         brw_cs_prog_local_id_payload_dwords(prog, cs_prog_data->simd_size);
+         brw_cs_prog_local_id_payload_dwords(cs_prog_data->simd_size);
    }
 
    unsigned push_constant_data_size =
@@ -216,8 +216,7 @@ const struct brw_tracked_state brw_cs_state = {
  *
  */
 unsigned
-brw_cs_prog_local_id_payload_dwords(const struct gl_program *prog,
-                                    unsigned dispatch_width)
+brw_cs_prog_local_id_payload_dwords(unsigned dispatch_width)
 {
    return 3 * dispatch_width;
 }
@@ -272,7 +271,7 @@ brw_upload_cs_push_constants(struct brw_context *brw,
 
    if (prog->SystemValuesRead & SYSTEM_BIT_LOCAL_INVOCATION_ID) {
       local_id_dwords =
-         brw_cs_prog_local_id_payload_dwords(prog, cs_prog_data->simd_size);
+         brw_cs_prog_local_id_payload_dwords(cs_prog_data->simd_size);
    }
 
    /* Updates the ParamaterValues[i] pointers for all parameters of the