From 5ede3b1c6b862f7396fa1add2e723358f6488d81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Fri, 13 May 2022 16:06:21 +0200 Subject: [PATCH] mesa: add gl_shader_stage_is_rt() to indicate raytracing shader stages. Part-of: --- src/compiler/shader_enums.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index b14a273..2005098 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -108,6 +108,12 @@ gl_shader_stage_is_callable(gl_shader_stage stage) } static inline bool +gl_shader_stage_is_rt(gl_shader_stage stage) +{ + return stage == MESA_SHADER_RAYGEN || gl_shader_stage_is_callable(stage); +} + +static inline bool gl_shader_stage_can_set_fragment_shading_rate(gl_shader_stage stage) { /* According to EXT_fragment_shading_rate : -- 2.7.4