diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-01-15 12:34:33 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-01-30 22:00:40 +0100 |
commit | 6f1a3f081e59599557c8436b7c8666d0fbba2677 (patch) | |
tree | fbebc84f882a6d82d842361adf3fcfc7033aec5e /src/amd/vulkan/radv_private.h | |
parent | f0c9ef410adb52167509e62b5d4a4dfeb602c163 (diff) |
radv: Constify some pipeline helpers.
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index cf8cf5fd4e7..736c900929e 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1272,12 +1272,12 @@ struct radv_pipeline { unsigned scratch_bytes_per_wave; }; -static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline) +static inline bool radv_pipeline_has_gs(const struct radv_pipeline *pipeline) { return pipeline->shaders[MESA_SHADER_GEOMETRY] ? true : false; } -static inline bool radv_pipeline_has_tess(struct radv_pipeline *pipeline) +static inline bool radv_pipeline_has_tess(const struct radv_pipeline *pipeline) { return pipeline->shaders[MESA_SHADER_TESS_CTRL] ? true : false; } |