llvmpipe: enable ARB_shader_image_load_store
authorDave Airlie <airlied@redhat.com>
Sat, 20 Jul 2019 04:29:00 +0000 (14:29 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 27 Aug 2019 02:30:22 +0000 (12:30 +1000)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_limits.h

index 9be7e68badd135f1e5bff53adc65ef08f98e360d..0f74d33148ddf88ae82839a129775304620c57c4 100644 (file)
@@ -142,7 +142,6 @@ gallivm_get_shader_param(enum pipe_shader_cap param)
    case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:
    case PIPE_SHADER_CAP_TGSI_LDEXP_SUPPORTED:
    case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
-   case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
    case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
    case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
    case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS:
@@ -154,6 +153,8 @@ gallivm_get_shader_param(enum pipe_shader_cap param)
       return 32;
    case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
       return LP_MAX_TGSI_SHADER_BUFFERS;
+   case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
+      return LP_MAX_TGSI_SHADER_IMAGES;
    }
    /* if we get here, we missed a shader cap above (and should have seen
     * a compiler warning.)