mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
freedreno/a6xx: cube image fix
Note that emit_intrinsic_load_image() already swaps a .3d flag with an .a flag. I tried doing things the other way around (going back to .3d) but that didn't work. And treating cube images as 2d array is also what blob does, so let's just go with that. Fixes dEQP-GLES31.functional.image_load_store.cube.load_store.* Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
f90c3b4485
commit
fd360c82f0
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ static void translate_image(struct fd6_image *img, const struct pipe_image_view
|
|||
img->cpp = rsc->cpp;
|
||||
img->bo = rsc->bo;
|
||||
|
||||
/* Treat cube textures as 2d-array: */
|
||||
if (img->type == A6XX_TEX_CUBE)
|
||||
img->type = A6XX_TEX_2D;
|
||||
|
||||
if (prsc->target == PIPE_BUFFER) {
|
||||
img->buffer = true;
|
||||
img->offset = pimg->u.buf.offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue