spirv: add support for SpvCapabilityFragmentBarycentricKHR

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23254>
This commit is contained in:
Samuel Pitoiset
2022-05-06 14:00:40 +02:00
committed by Marge Bot
parent adbd362421
commit c49a052cbf
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -63,6 +63,7 @@ struct spirv_supported_capabilities {
bool float64_atomic_add;
bool float64_atomic_min_max;
bool float64;
bool fragment_barycentric;
bool fragment_density;
bool fragment_fully_covered;
bool fragment_shader_pixel_interlock;
+4
View File
@@ -5066,6 +5066,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(ray_tracing_position_fetch, cap);
break;
case SpvCapabilityFragmentBarycentricKHR:
spv_check_supported(fragment_barycentric, cap);
break;
default:
vtn_fail("Unhandled capability: %s (%u)",
spirv_capability_to_string(cap), cap);