From ad5858e320625dd1ad1555ca0cb4da2cfad96fda Mon Sep 17 00:00:00 2001 From: Lukasz Kalamarz Date: Tue, 12 Jun 2018 14:10:00 +0200 Subject: lib/rendercopy: Use gen6 definitions if applicable Instead of using definitions duplicated in gen7_render header, we should use the oldest definition that is working with chosen gen. This patch reuses gen6 definitons if registers/fields/shifts that were reintroduced in other genX_render headers. v2: Fixed commit message v3: fixed typos in commit msg Signed-off-by: Lukasz Kalamarz Cc: Katarzyna Dec Cc: Antonio Argenziano Cc: Daniele Ceraolo Spurio Cc: Ewelina Musial Reviewed-by: Katarzyna Dec --- lib/rendercopy_gen8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rendercopy_gen8.c') diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index b60d18a7..a328e2bd 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -622,7 +622,7 @@ gen8_emit_hs(struct intel_batchbuffer *batch) { static void gen8_emit_gs(struct intel_batchbuffer *batch) { - OUT_BATCH(GEN7_3DSTATE_CONSTANT_GS | (11 - 2)); + OUT_BATCH(GEN6_3DSTATE_CONSTANT_GS | (11 - 2)); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); @@ -634,7 +634,7 @@ gen8_emit_gs(struct intel_batchbuffer *batch) { OUT_BATCH(0); OUT_BATCH(0); - OUT_BATCH(GEN7_3DSTATE_GS | (10-2)); + OUT_BATCH(GEN6_3DSTATE_GS | (10-2)); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); -- cgit v1.2.3