panfrost: Specify 3D in texture descriptor
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
8429beef5e
commit
36a7b2b018
|
@ -1131,6 +1131,9 @@ enum mali_wrap_mode {
|
|||
|
||||
/* Corresponds to the type passed to glTexImage2D and so forth */
|
||||
|
||||
/* For usage1 */
|
||||
#define MALI_TEX_3D (0x04)
|
||||
|
||||
/* Flags for usage2 */
|
||||
#define MALI_TEX_MANUAL_STRIDE (0x20)
|
||||
|
||||
|
|
|
@ -2107,7 +2107,7 @@ panfrost_create_sampler_view(
|
|||
.swizzle = panfrost_translate_swizzle_4(desc->swizzle),
|
||||
.format = format,
|
||||
|
||||
.usage1 = 0x0,
|
||||
.usage1 = (texture->target == PIPE_TEXTURE_3D) ? MALI_TEX_3D : 0,
|
||||
.is_not_cubemap = texture->target != PIPE_TEXTURE_CUBE,
|
||||
|
||||
.usage2 = usage2_layout
|
||||
|
|
Loading…
Reference in New Issue