summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-12-09 19:22:04 -0800
committerKristian H. Kristensen <[email protected]>2019-12-11 22:25:47 +0000
commit781b2dd63b630d87f6dc309d101f4fde47f40374 (patch)
tree39171cca4c18f5bdadad38d470a8bd0fccebb768 /src/gallium/drivers
parent9783f6bc5d2345f4b603ed591e63d23a367d84e4 (diff)
freedreno/a6xx: Include fd6_pack.h in a few files
Including non-functional changes to get the value from the fd_reg_pair in places. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Rob Clark <[email protected]> Signed-off-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_blitter.c1
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_gmem.c17
2 files changed, 10 insertions, 8 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
index f555e294e45..09afbbe0cc7 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
@@ -36,6 +36,7 @@
#include "fd6_format.h"
#include "fd6_emit.h"
#include "fd6_resource.h"
+#include "fd6_pack.h"
/* Make sure none of the requested dimensions extend beyond the size of the
* resource. Not entirely sure why this happens, but sometimes it does, and
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
index 2b5b33d453d..e273459639c 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
@@ -46,6 +46,7 @@
#include "fd6_format.h"
#include "fd6_resource.h"
#include "fd6_zsa.h"
+#include "fd6_pack.h"
/**
* Emits the flags registers, suitable for RB_MRT_FLAG_BUFFER,
@@ -136,8 +137,8 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb,
OUT_RING(ring, A6XX_RB_MRT_BUF_INFO_COLOR_FORMAT(format) |
A6XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE(tile_mode) |
A6XX_RB_MRT_BUF_INFO_COLOR_SWAP(swap));
- OUT_RING(ring, A6XX_RB_MRT_PITCH(stride));
- OUT_RING(ring, A6XX_RB_MRT_ARRAY_PITCH(slice->size0));
+ OUT_RING(ring, A6XX_RB_MRT_PITCH(stride).value);
+ OUT_RING(ring, A6XX_RB_MRT_ARRAY_PITCH(slice->size0).value);
OUT_RELOCW(ring, rsc->bo, offset, 0, 0); /* BASE_LO/HI */
OUT_RING(ring, base); /* RB_MRT[i].BASE_GMEM */
OUT_PKT4(ring, REG_A6XX_SP_FS_MRT_REG(i), 1);
@@ -198,8 +199,8 @@ emit_zs(struct fd_ringbuffer *ring, struct pipe_surface *zsbuf,
OUT_PKT4(ring, REG_A6XX_RB_DEPTH_BUFFER_INFO, 6);
OUT_RING(ring, A6XX_RB_DEPTH_BUFFER_INFO_DEPTH_FORMAT(fmt));
- OUT_RING(ring, A6XX_RB_DEPTH_BUFFER_PITCH(stride));
- OUT_RING(ring, A6XX_RB_DEPTH_BUFFER_ARRAY_PITCH(size));
+ OUT_RING(ring, A6XX_RB_DEPTH_BUFFER_PITCH(stride).value);
+ OUT_RING(ring, A6XX_RB_DEPTH_BUFFER_ARRAY_PITCH(size).value);
OUT_RELOCW(ring, rsc->bo, offset, 0, 0); /* RB_DEPTH_BUFFER_BASE_LO/HI */
OUT_RING(ring, base); /* RB_DEPTH_BUFFER_BASE_GMEM */
@@ -241,8 +242,8 @@ emit_zs(struct fd_ringbuffer *ring, struct pipe_surface *zsbuf,
OUT_PKT4(ring, REG_A6XX_RB_STENCIL_INFO, 6);
OUT_RING(ring, A6XX_RB_STENCIL_INFO_SEPARATE_STENCIL);
- OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_PITCH(stride));
- OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_ARRAY_PITCH(size));
+ OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_PITCH(stride).value);
+ OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_ARRAY_PITCH(size).value);
OUT_RELOCW(ring, rsc->stencil->bo, 0, 0, 0); /* RB_STENCIL_BASE_LO/HI */
OUT_RING(ring, base); /* RB_STENCIL_BASE_LO */
} else {
@@ -999,8 +1000,8 @@ emit_blit(struct fd_batch *batch,
A6XX_RB_BLIT_DST_INFO_COLOR_SWAP(swap) |
COND(ubwc_enabled, A6XX_RB_BLIT_DST_INFO_FLAGS));
OUT_RELOCW(ring, rsc->bo, offset, 0, 0); /* RB_BLIT_DST_LO/HI */
- OUT_RING(ring, A6XX_RB_BLIT_DST_PITCH(stride));
- OUT_RING(ring, A6XX_RB_BLIT_DST_ARRAY_PITCH(size));
+ OUT_RING(ring, A6XX_RB_BLIT_DST_PITCH(stride).value);
+ OUT_RING(ring, A6XX_RB_BLIT_DST_ARRAY_PITCH(size).value);
OUT_PKT4(ring, REG_A6XX_RB_BLIT_BASE_GMEM, 1);
OUT_RING(ring, base);