[Mesa-dev] [PATCH] radv/ac: avoid the fmask path when doing txs.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Feb 6 22:56:14 UTC 2017
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Mon, Feb 6, 2017, at 03:41, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes the vulkan samples deferredmultisampling test.
>
> Cc: "17.0" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/amd/common/ac_nir_to_llvm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c
> b/src/amd/common/ac_nir_to_llvm.c
> index 566516f..dbd65f6 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -3648,7 +3648,8 @@ static void visit_tex(struct nir_to_llvm_context
> *ctx, nir_tex_instr *instr)
> * The sample index should be adjusted as follows:
> * sample_index = (fmask >> (sample_index * 4)) & 0xF;
> */
> - if (instr->sampler_dim == GLSL_SAMPLER_DIM_MS) {
> + if (instr->sampler_dim == GLSL_SAMPLER_DIM_MS &&
> + instr->op != nir_texop_txs) {
> LLVMValueRef txf_address[4];
> struct ac_tex_info txf_info = { 0 };
> unsigned txf_count = count;
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list