mesa/src/amd/common
Fredrik Höglund 27a8aab882 radv: fix dual source blending
Add the index to the location when assigning driver locations for
output variables.

Otherwise two fragment shader outputs declared as:

   layout (location = 0, index = 0) out vec4 output1;
   layout (location = 0, index = 1) out vec4 output2;

will end up aliasing one another.

Note that this patch will make the second output variable in the above
example alias a possible third output variable with location = 1 and
index = 0. But this shouldn't be a problem in practice since only one
color attachment is supported when dual-source blending is used.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
2016-12-22 02:07:17 +01:00
..
ac_binary.c radv: add initial non-conformant radv vulkan driver 2016-10-07 09:16:09 +10:00
ac_binary.h radv: add initial non-conformant radv vulkan driver 2016-10-07 09:16:09 +10:00
ac_llvm_helper.cpp amd/common: add ac_is_sgpr_param helper 2016-11-03 10:06:27 +01:00
ac_llvm_util.c radv: add initial non-conformant radv vulkan driver 2016-10-07 09:16:09 +10:00
ac_llvm_util.h amd/common: add ac_is_sgpr_param helper 2016-11-03 10:06:27 +01:00
ac_nir_to_llvm.c radv: fix dual source blending 2016-12-22 02:07:17 +01:00
ac_nir_to_llvm.h radv: move userdata sgpr ownership to compiler side. 2016-12-07 23:25:49 +00:00
amd_family.h radeonsi: add Polaris12 support (v3) 2016-12-21 15:10:03 -05:00
amd_kernel_code_t.h radeonsi/compute: Use the HSA abi for non-TGSI compute shaders v3 2016-09-16 23:07:10 +00:00
amdgpu_id.h radeonsi: add Polaris12 support (v3) 2016-12-21 15:10:03 -05:00
r600d_common.h radeonsi: move sid.h/r600d_common.h to a common place. 2016-09-06 10:05:13 +10:00
sid.h radv: Use RELEASE_MEM packet for MEC timestamp query. 2016-12-18 20:52:37 +01:00