Mesa (master): i965: Add _default_ name changes to test_eu_compact.c.

Vinson Lee vlee at kemper.freedesktop.org
Tue Jun 3 06:45:01 UTC 2014


Module: Mesa
Branch: master
Commit: dad22cc590a118c25c963c59784f6904c181bb58
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dad22cc590a118c25c963c59784f6904c181bb58

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Mon Jun  2 23:38:05 2014 -0700

i965: Add _default_ name changes to test_eu_compact.c.

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 at freedesktop.org>

---

 src/mesa/drivers/dri/i965/test_eu_compact.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/test_eu_compact.c b/src/mesa/drivers/dri/i965/test_eu_compact.c
index 231487d..809b557 100644
--- a/src/mesa/drivers/dri/i965/test_eu_compact.c
+++ b/src/mesa/drivers/dri/i965/test_eu_compact.c
@@ -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);




More information about the mesa-commit mailing list