diff options
author | Jonathan Marek <[email protected]> | 2020-04-21 12:14:23 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-22 18:46:46 +0000 |
commit | a92d2e11095d9f1f8bc1188fd3d2b8391acc4591 (patch) | |
tree | 9c4b47ddc2ccac739d642fc4c500843ea210e854 /src/freedreno/vulkan/tu_private.h | |
parent | 83b2f1d8cf53ec7f9defa2acdae313cdacb303af (diff) |
turnip: implement VK_EXT_sample_locations
Passes tests in:
dEQP-VK.pipeline.multisample.sample_locations_ext.*
Note that these tests fail because of gl_PrimitiveID not working correctly:
dEQP-VK.pipeline.multisample.sample_locations_ext.verify_location.*
Signed-off-by: Jonathan Marek <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4665>
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r-- | src/freedreno/vulkan/tu_private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index eb026998293..dfd9d5101b5 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -722,7 +722,8 @@ enum tu_dynamic_state_bits TU_DYNAMIC_STENCIL_WRITE_MASK = 1 << 7, TU_DYNAMIC_STENCIL_REFERENCE = 1 << 8, TU_DYNAMIC_DISCARD_RECTANGLE = 1 << 9, - TU_DYNAMIC_ALL = (1 << 10) - 1, + TU_DYNAMIC_SAMPLE_LOCATIONS = 1 << 10, + TU_DYNAMIC_ALL = (1 << 11) - 1, }; struct tu_vertex_binding @@ -1266,6 +1267,9 @@ void tu6_emit_scissor(struct tu_cs *cs, const VkRect2D *scissor); void +tu6_emit_sample_locations(struct tu_cs *cs, const VkSampleLocationsInfoEXT *samp_loc); + +void tu6_emit_gras_su_cntl(struct tu_cs *cs, uint32_t gras_su_cntl, float line_width); |