summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-06-19 17:08:15 +1000
committerDave Airlie <airlied@redhat.com>2020-07-27 13:48:11 +1000
commitaad047d0f9e1a5bd0f2648c1182d5685fa2cc2d5 (patch)
tree6b5222e15f6aaec7737b9d9613bc42e70f29b3c2
parente47ff2535cf9149479e18ba00b55f0caf6a66527 (diff)
gallivm/sample: add depth/stencil image loading support
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 1e6dff8519e..cdba6456409 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -4124,7 +4124,9 @@ lp_build_img_texel_type(struct gallivm_state *gallivm,
struct lp_type texel_type,
const struct util_format_description *format_desc)
{
- if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB &&
+ if (format_desc->format == PIPE_FORMAT_X24S8_UINT || format_desc->format == PIPE_FORMAT_X32_S8X24_UINT || format_desc->format == PIPE_FORMAT_S8_UINT)
+ texel_type = lp_type_uint_vec(texel_type.width, texel_type.width * texel_type.length);
+ else if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB &&
format_desc->channel[0].pure_integer) {
if (format_desc->channel[0].type == UTIL_FORMAT_TYPE_SIGNED) {
texel_type = lp_type_int_vec(texel_type.width, texel_type.width * texel_type.length);