ac/nir: fix 16-bit ssbo stores
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
committed by
Samuel Pitoiset
parent
7f89fd17ed
commit
0f025bbccc
@@ -1576,6 +1576,8 @@ static void visit_store_ssbo(struct ac_nir_context *ctx,
|
||||
if (num_bytes == 2) {
|
||||
store_name = "llvm.amdgcn.tbuffer.store.i32";
|
||||
data_type = ctx->ac.i32;
|
||||
data = LLVMBuildBitCast(ctx->ac.builder, data, ctx->ac.i16, "");
|
||||
data = LLVMBuildZExt(ctx->ac.builder, data, data_type, "");
|
||||
LLVMValueRef tbuffer_params[] = {
|
||||
data,
|
||||
rsrc,
|
||||
|
||||
Reference in New Issue
Block a user