mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
radeonsi: fix undefined left-shift into sign bit
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
494e4b8976
commit
44e0c0e6ec
1 changed files with 2 additions and 1 deletions
|
|
@ -370,12 +370,13 @@ static bool cik_sdma_copy_texture(struct si_context *sctx,
|
|||
copy_height <= (1 << 14) &&
|
||||
copy_depth <= (1 << 11)) {
|
||||
struct radeon_winsys_cs *cs = sctx->b.dma.cs;
|
||||
uint32_t direction = linear == rdst ? 1u << 31 : 0;
|
||||
|
||||
r600_need_dma_space(&sctx->b, 14, &rdst->resource, &rsrc->resource);
|
||||
|
||||
radeon_emit(cs, CIK_SDMA_PACKET(CIK_SDMA_OPCODE_COPY,
|
||||
CIK_SDMA_COPY_SUB_OPCODE_TILED_SUB_WINDOW, 0) |
|
||||
((linear == rdst) << 31));
|
||||
direction);
|
||||
radeon_emit(cs, tiled_address);
|
||||
radeon_emit(cs, tiled_address >> 32);
|
||||
radeon_emit(cs, tiled_x | (tiled_y << 16));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue