radv: remove useless mask operation in radv_cs_emit_draw_indexed_packet()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Oct 2017 12:17:22 +0000 (14:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Oct 2017 19:21:30 +0000 (21:21 +0200)
This saves few CPU cycles when CmdDrawIndexed() is used a lot.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index e0d664661646968b5663fa4cff2b784b4820bf1b..c6dd620eeaf480e0db6967b4baa9945438df28b0 100644 (file)
@@ -2905,7 +2905,7 @@ radv_cs_emit_draw_indexed_packet(struct radv_cmd_buffer *cmd_buffer,
        radeon_emit(cmd_buffer->cs, PKT3(PKT3_DRAW_INDEX_2, 4, false));
        radeon_emit(cmd_buffer->cs, cmd_buffer->state.max_index_count);
        radeon_emit(cmd_buffer->cs, index_va);
-       radeon_emit(cmd_buffer->cs, (index_va >> 32UL) & 0xFF);
+       radeon_emit(cmd_buffer->cs, index_va >> 32);
        radeon_emit(cmd_buffer->cs, index_count);
        radeon_emit(cmd_buffer->cs, V_0287F0_DI_SRC_SEL_DMA);
 }