radv: Prevent out of bound shift on 32-bit builds.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 10 Jun 2019 14:17:46 +0000 (16:17 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 10 Jun 2019 22:18:51 +0000 (22:18 +0000)
commit39c71e002561052d0596200b2d0ebdb8cc39d862
tree0a7333c7b291d00231a5570d15156a737e21c129
parent2cb5907508662b46ad4d15b44f3e786f400ee087
radv: Prevent out of bound shift on 32-bit builds.

uintptr_t is 32-bits then and shifting it by 32 bits results in undefined
behavior IIRC.

Fixes: b3c8de1c55c "radv: save all descriptor pointers into the trace BO"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c