diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2021-04-12 12:24:50 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-20 07:49:21 +0000 |
commit | 00ff60f799c3e8a2d0c4d7933b60b3f8f69f092c (patch) | |
tree | 8ad17df3f7173ffe3d4143eefae0c936ac3a4eb0 /src/gallium/auxiliary | |
parent | 1c82c05d5857159f166ff6f7c2a50c924fda6bc3 (diff) |
gallivm: add 16-bit integer support
The new failure here is due to a bug in the test-case, and a fix has
been submitted here:
https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/502
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10185>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_limits.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_limits.h b/src/gallium/auxiliary/gallivm/lp_bld_limits.h index 79f91b40abb..ab61f58021a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_limits.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_limits.h @@ -128,9 +128,10 @@ gallivm_get_shader_param(enum pipe_shader_cap param) case PIPE_SHADER_CAP_FP16: case PIPE_SHADER_CAP_FP16_DERIVATIVES: case PIPE_SHADER_CAP_FP16_CONST_BUFFERS: + return 0; case PIPE_SHADER_CAP_INT16: case PIPE_SHADER_CAP_GLSL_16BIT_CONSTS: - return 0; + return 1; case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: return PIPE_MAX_SAMPLERS; case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS: |