diff options
author | Nicolai Hähnle <[email protected]> | 2018-04-04 21:14:13 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2018-04-20 09:21:50 +0200 |
commit | 9cb52d470a0db8b733bb344168308a6e7766626d (patch) | |
tree | 34bbb18cf1c6dd455b18e92a206f6742399f6dec /src/gallium | |
parent | 552bc37c6f6314e3d644d0dbd7ce6891e7f8dea8 (diff) |
radeonsi/nir: fix crash in test involving the sample mask
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index b4970f14e34..4eff4f57b97 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2016,7 +2016,8 @@ static LLVMValueRef load_sample_position(struct ac_shader_abi *abi, LLVMValueRef static LLVMValueRef load_sample_mask_in(struct ac_shader_abi *abi) { - return abi->sample_coverage; + struct si_shader_context *ctx = si_shader_context_from_abi(abi); + return ac_to_integer(&ctx->ac, abi->sample_coverage); } static LLVMValueRef si_load_tess_coord(struct ac_shader_abi *abi) |