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

Author: Tapani Pälli <tapani.pa...@intel.com>
Date:   Thu Jan 11 07:57:15 2024 +0200

hasvk: remove gfx9 specific code from emit_sample_pattern

Signed-off-by: Tapani Pälli <tapani.pa...@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26997>

---

 src/intel/vulkan_hasvk/genX_state.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/intel/vulkan_hasvk/genX_state.c 
b/src/intel/vulkan_hasvk/genX_state.c
index 2850dee34b4..ea9b9026e89 100644
--- a/src/intel/vulkan_hasvk/genX_state.c
+++ b/src/intel/vulkan_hasvk/genX_state.c
@@ -300,7 +300,7 @@ genX(emit_sample_pattern)(struct anv_batch *batch,
        * lit sample and that it's the same for all samples in a pixel; they
        * have no requirement that it be the one closest to center.
        */
-      for (uint32_t i = 1; i <= (GFX_VER >= 9 ? 16 : 8); i *= 2) {
+      for (uint32_t i = 1; i <= 8; i *= 2) {
          switch (i) {
          case VK_SAMPLE_COUNT_1_BIT:
             if (sl && sl->per_pixel == i) {
@@ -330,15 +330,6 @@ genX(emit_sample_pattern)(struct anv_batch *batch,
                INTEL_SAMPLE_POS_8X(sp._8xSample);
             }
             break;
-#if GFX_VER >= 9
-         case VK_SAMPLE_COUNT_16_BIT:
-            if (sl && sl->per_pixel == i) {
-               INTEL_SAMPLE_POS_16X_ARRAY(sp._16xSample, sl->locations);
-            } else {
-               INTEL_SAMPLE_POS_16X(sp._16xSample);
-            }
-            break;
-#endif
          default:
             unreachable("Invalid sample count");
          }

Reply via email to