diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-10-31 16:11:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-10-31 16:20:25 +0000 |
commit | 30fded8dfa77c74de165ad53f82412a2e7fa88ae (patch) | |
tree | 84a1331a9be0290be0ef5645f0f973db4c4b9885 /src/sna/brw/brw_test_gen4.c | |
parent | 71d79daf458c05f771441eb268693c34be0a97c3 (diff) |
sna/brw: Fix EU tests to select the right gen
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/brw/brw_test_gen4.c')
-rw-r--r-- | src/sna/brw/brw_test_gen4.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sna/brw/brw_test_gen4.c b/src/sna/brw/brw_test_gen4.c index 742c7c24..c0a185f3 100644 --- a/src/sna/brw/brw_test_gen4.c +++ b/src/sna/brw/brw_test_gen4.c @@ -127,6 +127,8 @@ static const uint32_t ps_kernel_planar_static[][4] = { #include "exa_wm_write.g4b" }; +#define GEN 040 + #define compare(old) brw_test_compare(__FUNCTION__, p.gen, p.store, p.nr_insn, (struct brw_instruction *)old, ARRAY_SIZE(old)-8) static void gen4_sf__nomask(void) @@ -134,7 +136,7 @@ static void gen4_sf__nomask(void) uint32_t store[128]; struct brw_compile p; - brw_compile_init(&p, 40, store); + brw_compile_init(&p, GEN, store); brw_sf_kernel__nomask(&p); compare(sf_kernel); @@ -145,7 +147,7 @@ static void gen4_sf__mask(void) uint32_t store[128]; struct brw_compile p; - brw_compile_init(&p, 40, store); + brw_compile_init(&p, GEN, store); brw_sf_kernel__mask(&p); compare(sf_kernel_mask); @@ -157,7 +159,7 @@ gen4_wm_kernel__affine_nomask(void) uint32_t store[128]; struct brw_compile p; - brw_compile_init(&p, 40, store); + brw_compile_init(&p, GEN, store); brw_wm_kernel__affine(&p, 16); compare(ps_kernel_nomask_affine); @@ -169,7 +171,7 @@ gen4_wm_kernel__affine_mask_noca(void) uint32_t store[128]; struct brw_compile p; - brw_compile_init(&p, 40, store); + brw_compile_init(&p, GEN, store); brw_wm_kernel__affine_mask(&p, 16); compare(ps_kernel_masknoca_affine); @@ -181,7 +183,7 @@ gen4_wm_kernel__projective_nomask(void) uint32_t store[128]; struct brw_compile p; - brw_compile_init(&p, 40, store); + brw_compile_init(&p, GEN, store); brw_wm_kernel__projective(&p, 16); compare(ps_kernel_nomask_projective); |