freedreno: move UBWC color offset to fd_resource_offset()
Best to keep it encapsulated in the helper which returns layer/level
offset (and actually use that helper everywhere) rather than spreading
the logic around the code.
Also add a helper to find UBWC offset, to complete the encapsulation.
Signed-off-by:
Rob Clark <robdclark@chromium.org>
Showing
- src/gallium/drivers/freedreno/a6xx/fd6_blitter.c 6 additions, 4 deletionssrc/gallium/drivers/freedreno/a6xx/fd6_blitter.c
- src/gallium/drivers/freedreno/a6xx/fd6_emit.c 2 additions, 2 deletionssrc/gallium/drivers/freedreno/a6xx/fd6_emit.c
- src/gallium/drivers/freedreno/a6xx/fd6_gmem.c 16 additions, 8 deletionssrc/gallium/drivers/freedreno/a6xx/fd6_gmem.c
- src/gallium/drivers/freedreno/a6xx/fd6_image.c 2 additions, 2 deletionssrc/gallium/drivers/freedreno/a6xx/fd6_image.c
- src/gallium/drivers/freedreno/a6xx/fd6_texture.c 1 addition, 0 deletionssrc/gallium/drivers/freedreno/a6xx/fd6_texture.c
- src/gallium/drivers/freedreno/a6xx/fd6_texture.h 1 addition, 1 deletionsrc/gallium/drivers/freedreno/a6xx/fd6_texture.h
- src/gallium/drivers/freedreno/freedreno_resource.h 14 additions, 1 deletionsrc/gallium/drivers/freedreno/freedreno_resource.h
Loading
Please register or sign in to comment