From: Rafael Antognolli Date: Wed, 19 Apr 2017 23:04:12 +0000 (-0700) Subject: genxml: Normalize xml for 3DSTATE_MULTISAMPLE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b89805a7bcf19239cccae6152adbe3b5023f654e;p=mesa.git genxml: Normalize xml for 3DSTATE_MULTISAMPLE. Name the options to "Pixel Location": - PIXLOC_CENTER -> CENTER - PIXLOC_UL_CORNER -> UL_CORNER Signed-off-by: Rafael Antognolli Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index bc829d026cb..be22be09ab5 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1188,9 +1188,7 @@ blorp_emit_3dstate_multisample(struct blorp_batch *batch, * should not have any effect by setting or not setting this bit. */ ms.PixelPositionOffsetEnable = false; - ms.PixelLocation = CENTER; #elif GEN_GEN >= 7 - ms.PixelLocation = PIXLOC_CENTER; switch (params->num_samples) { case 1: @@ -1209,9 +1207,9 @@ blorp_emit_3dstate_multisample(struct blorp_batch *batch, break; } #else - ms.PixelLocation = PIXLOC_CENTER; GEN_SAMPLE_POS_4X(ms.Sample); #endif + ms.PixelLocation = CENTER; } } diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml index 2cb9419473f..a8ce7e06651 100644 --- a/src/intel/genxml/gen6.xml +++ b/src/intel/genxml/gen6.xml @@ -1089,8 +1089,8 @@ - - + + diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml index 75954fe5671..fd70414f526 100644 --- a/src/intel/genxml/gen7.xml +++ b/src/intel/genxml/gen7.xml @@ -1262,8 +1262,8 @@ - - + + diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml index 1e64fef7d2f..ac2dbc34c27 100644 --- a/src/intel/genxml/gen75.xml +++ b/src/intel/genxml/gen75.xml @@ -1548,8 +1548,8 @@ - - + + diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index d4e6182684e..a4d318ec3e9 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -552,6 +552,7 @@ emit_ms_state(struct anv_pipeline *pipeline, anv_batch_emit(&pipeline->batch, GENX(3DSTATE_MULTISAMPLE), ms) { ms.NumberofMultisamples = log2_samples; + ms.PixelLocation = CENTER; #if GEN_GEN >= 8 /* The PRM says that this bit is valid only for DX9: * @@ -559,9 +560,7 @@ emit_ms_state(struct anv_pipeline *pipeline, * should not have any effect by setting or not setting this bit. */ ms.PixelPositionOffsetEnable = false; - ms.PixelLocation = CENTER; #else - ms.PixelLocation = PIXLOC_CENTER; switch (samples) { case 1: