i965: Add _default_ name changes to test_eu_compact.c.
authorVinson Lee <vlee@freedesktop.org>
Tue, 3 Jun 2014 06:38:05 +0000 (23:38 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 3 Jun 2014 06:44:21 +0000 (23:44 -0700)
These were missed in commit e374809819d82f2e3e946fe809c4d46061ddc5b5.

Fixes 'make check'.

  CC       test_eu_compact.o
test_eu_compact.c: In function ‘gen_f0_0_MOV_GRF_GRF’:
test_eu_compact.c:222:4: error: implicit declaration of function ‘brw_set_predicate_control’ [-Werror=implicit-function-declaration]
    brw_set_predicate_control(p, true);
    ^
test_eu_compact.c: In function ‘run_tests’:
test_eu_compact.c:270:6: error: implicit declaration of function ‘brw_set_access_mode’ [-Werror=implicit-function-declaration]
      brw_set_access_mode(p, BRW_ALIGN_16);
      ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/mesa/drivers/dri/i965/test_eu_compact.c

index 231487d..809b557 100644 (file)
@@ -219,7 +219,7 @@ gen_f0_0_MOV_GRF_GRF(struct brw_compile *p)
    struct brw_reg g2 = brw_vec8_grf(2, 0);
 
    brw_push_insn_state(p);
-   brw_set_predicate_control(p, true);
+   brw_set_default_predicate_control(p, true);
    brw_MOV(p, g0, g2);
    brw_pop_insn_state(p);
 }
@@ -235,7 +235,7 @@ gen_f0_1_MOV_GRF_GRF(struct brw_compile *p)
    struct brw_reg g2 = brw_vec8_grf(2, 0);
 
    brw_push_insn_state(p);
-   brw_set_predicate_control(p, true);
+   brw_set_default_predicate_control(p, true);
    struct brw_instruction *mov = brw_MOV(p, g0, g2);
    mov->bits2.da1.flag_subreg_nr = 1;
    brw_pop_insn_state(p);
@@ -265,11 +265,11 @@ run_tests(struct brw_context *brw)
         struct brw_compile *p = rzalloc(NULL, struct brw_compile);
         brw_init_compile(brw, p, p);
 
-        brw_set_predicate_control(p, BRW_PREDICATE_NONE);
+        brw_set_default_predicate_control(p, BRW_PREDICATE_NONE);
         if (align_16)
-           brw_set_access_mode(p, BRW_ALIGN_16);
+           brw_set_default_access_mode(p, BRW_ALIGN_16);
         else
-           brw_set_access_mode(p, BRW_ALIGN_1);
+           brw_set_default_access_mode(p, BRW_ALIGN_1);
 
         tests[i].func(p);
         assert(p->nr_insn == 1);