From 9afe5846d2c9df4e1ac6c1a5c296e14ac68ae968 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 10 May 2017 23:37:23 -0700 Subject: [PATCH] genxml: Make a SCISSOR_RECT structure on Gen4-5. Gen6+ support multiple scissor rectangles, and define a SCISSOR_RECT structure containing their dimensions. On Gen4-5, those same fields exist in SF_VIEWPORT. This patch extracts the SF_VIEWPORT fields into a SCISSOR_RECT structure. Although not a named concept on Gen4-5, it works just as well, and gives us a consistent SCISSOR_RECT structure across all generations, making it easier to reuse code. Reviewed-by: Topi Pohjolainen --- src/intel/genxml/gen4.xml | 12 ++++++++---- src/intel/genxml/gen45.xml | 12 ++++++++---- src/intel/genxml/gen5.xml | 12 ++++++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/intel/genxml/gen4.xml b/src/intel/genxml/gen4.xml index 58e07515853..b6721ac9f6c 100644 --- a/src/intel/genxml/gen4.xml +++ b/src/intel/genxml/gen4.xml @@ -401,6 +401,13 @@ + + + + + + + @@ -693,10 +700,7 @@ - - - - + diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml index 47100e55e8a..72c9fc23daa 100644 --- a/src/intel/genxml/gen45.xml +++ b/src/intel/genxml/gen45.xml @@ -402,6 +402,13 @@ + + + + + + + @@ -707,10 +714,7 @@ - - - - + diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml index 777ed36427d..729137c666e 100644 --- a/src/intel/genxml/gen5.xml +++ b/src/intel/genxml/gen5.xml @@ -400,6 +400,13 @@ + + + + + + + @@ -798,10 +805,7 @@ - - - - + -- 2.30.2