i965: Pass brw to brw_try_compact_instruction().
authorMatt Turner <mattst88@gmail.com>
Mon, 16 Jun 2014 23:34:57 +0000 (16:34 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jun 2014 18:46:25 +0000 (11:46 -0700)
Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/test_eu_compact.c

index e06d832933ee77d662fdb12c208c4cedb0af5355..59b9232feedc97b68c7e33a943ab505c5811d76e 100644 (file)
@@ -412,7 +412,7 @@ void brw_compact_instructions(struct brw_compile *p, int start_offset,
                               int num_annotations, struct annotation *annotation);
 void brw_uncompact_instruction(struct brw_context *brw, brw_inst *dst,
                                brw_compact_inst *src);
-bool brw_try_compact_instruction(struct brw_compile *p, brw_compact_inst *dst,
+bool brw_try_compact_instruction(struct brw_context *brw, brw_compact_inst *dst,
                                  brw_inst *src);
 
 void brw_debug_compact_uncompact(struct brw_context *brw, brw_inst *orig,
index a7d3595e3bdebfc2074d5bfe33cc0c4b2f05a66f..b9a6500ecda48924fc440df137d6dbb136d482cd 100644 (file)
@@ -459,10 +459,9 @@ is_compactable_immediate(unsigned imm)
  * brw_compact_instructions().
  */
 bool
-brw_try_compact_instruction(struct brw_compile *p, brw_compact_inst *dst,
+brw_try_compact_instruction(struct brw_context *brw, brw_compact_inst *dst,
                             brw_inst *src)
 {
-   struct brw_context *brw = p->brw;
    brw_compact_inst temp;
 
    if (brw_inst_opcode(brw, src) == BRW_OPCODE_IF ||
@@ -728,7 +727,7 @@ brw_compact_instructions(struct brw_compile *p, int start_offset,
       brw_inst saved = *src;
 
       if (!brw_inst_cmpt_control(brw, src) &&
-          brw_try_compact_instruction(p, dst, src)) {
+          brw_try_compact_instruction(brw, dst, src)) {
          compacted_count++;
 
          if (INTEL_DEBUG) {
index b7737c758e6acb4318819d550668dabb6095be95..92b6dd5497c714bd0237b3513f3e345c565c50ae 100644 (file)
@@ -36,7 +36,7 @@ test_compact_instruction(struct brw_compile *p, brw_inst src)
    brw_compact_inst dst;
    memset(&dst, 0xd0, sizeof(dst));
 
-   if (brw_try_compact_instruction(p, &dst, &src)) {
+   if (brw_try_compact_instruction(brw, &dst, &src)) {
       brw_inst uncompacted;
 
       brw_uncompact_instruction(brw, &uncompacted, &dst);