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

Author: Iván Briano <[email protected]>
Date:   Tue Oct  4 20:02:25 2022 -0700

hasvk: use DX rules for point rasterization

It seems that's what the reference renderer in the CTS expects for
Vulkan. This mostly matters if the edges of a point primitive fall
exactly on a pixel sampling point.

Fixes some upcoming tests under
dEQP-VK.pipeline.monolithic.depth.format.*.point_list*

Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19026>

---

 src/intel/vulkan_hasvk/genX_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan_hasvk/genX_pipeline.c 
b/src/intel/vulkan_hasvk/genX_pipeline.c
index 55d2782a7bb..b35d5759c3d 100644
--- a/src/intel/vulkan_hasvk/genX_pipeline.c
+++ b/src/intel/vulkan_hasvk/genX_pipeline.c
@@ -1682,7 +1682,7 @@ emit_3dstate_wm(struct anv_graphics_pipeline *pipeline,
    wm.StatisticsEnable                    = true;
    wm.LineEndCapAntialiasingRegionWidth   = _05pixels;
    wm.LineAntialiasingRegionWidth         = _10pixels;
-   wm.PointRasterizationRule              = RASTRULE_UPPER_RIGHT;
+   wm.PointRasterizationRule              = RASTRULE_UPPER_LEFT;
 
    if (anv_pipeline_has_stage(pipeline, MESA_SHADER_FRAGMENT)) {
       if (wm_prog_data->early_fragment_tests) {

Reply via email to