[Mesa-dev] [PATCH v3 05/21] clover/device: Replace usage of "1 << PIPE_SHADER_IR_*" with supports_ir

Aaron Watry awatry at gmail.com
Thu Feb 22 01:51:10 UTC 2018


Patches 1-5:
Reviewed-By: Aaron Watry <awatry at gmail.com>

On Wed, Feb 21, 2018 at 4:50 PM, Pierre Moreau <pierre.morrow at free.fr> wrote:
> Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
> ---
>  src/gallium/state_trackers/clover/core/device.cpp | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp
> index dac03fccb9..9b15b30944 100644
> --- a/src/gallium/state_trackers/clover/core/device.cpp
> +++ b/src/gallium/state_trackers/clover/core/device.cpp
> @@ -243,11 +243,7 @@ device::vendor_name() const {
>
>  enum pipe_shader_ir
>  device::ir_format() const {
> -   int supported_irs =
> -      pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
> -                             PIPE_SHADER_CAP_SUPPORTED_IRS);
> -
> -   if (supported_irs & (1 << PIPE_SHADER_IR_NATIVE)) {
> +   if (supports_ir(PIPE_SHADER_IR_NATIVE)) {
>        return PIPE_SHADER_IR_NATIVE;
>     }
>
> --
> 2.16.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list