diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-24 14:39:37 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-25 13:39:18 -0700 |
commit | 0ad17f56ae2357af585766367d62cefd75429383 (patch) | |
tree | 2a00e062e78a16f5781f9aa3565c6d5df0a91962 /src/gallium | |
parent | faf8ad4875b61a546a1d197d4542ed5d77d65417 (diff) |
panfrost: Use the sampler_view target (not the textures)
u_blitter gets "special treatment" and uses this mechanism to cast
cube maps to 2D textures in order to texelFetch them.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index ccdeb8e2c2e..c8d41326150 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2205,7 +2205,7 @@ panfrost_create_sampler_view( unsigned array_size = texture->array_size; - if (texture->target == PIPE_TEXTURE_CUBE) { + if (template->target == PIPE_TEXTURE_CUBE) { /* TODO: Cubemap arrays */ assert(array_size == 6); array_size /= 6; @@ -2223,7 +2223,7 @@ panfrost_create_sampler_view( .format = format, .srgb = desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB, - .type = panfrost_translate_texture_type(texture->target), + .type = panfrost_translate_texture_type(template->target), .usage2 = usage2_layout }, |