mesa/src/broadcom/compiler
Iago Toral Quiroga 40788be134 v3d/compiler: fix BGRA vertex attributes for vec2/float size.
We don't natively support BGRA format, instead we handle these
as RGBA and we lower the loads to swap components R and B.

However, the driver emits VPM loads based on the size of the
input variables so when we have a vec2 or float BGRA input,
it would only emit VPM loads for components 0 and 1, which is
not correct since we emit a load of component 2 to swap with
component 0.

v2: handle GL legacy vertex inputs gracefully.

Fixes:
dEQP-VK.draw.output_location.array.b8g8r8a8-unorm-highp-output-vec2
dEQP-VK.draw.output_location.array.b8g8r8a8-unorm-mediump-output-vec2

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7271>
2020-10-23 09:19:02 +02:00
..
meson.build v3d/compiler: add a lowering pass for robust buffer access 2020-10-13 21:21:33 +00:00
nir_to_vir.c v3d/compiler: fix BGRA vertex attributes for vec2/float size. 2020-10-23 09:19:02 +02:00
qpu_schedule.c broadcom/qpu_instr: wait is not a read or write vpm instruction 2020-08-31 15:02:42 +02:00
qpu_validate.c
v3d33_tex.c
v3d33_vpm_setup.c
v3d40_tex.c v3d/tex: avoid to ask back for a sampler state if not needed 2020-10-13 21:21:31 +00:00
v3d_compiler.h broadcom/compiler: track partially interpolated fragment inputs 2020-10-15 02:04:04 +02:00
v3d_nir_lower_image_load_store.c
v3d_nir_lower_io.c broadcom/compiler: use nir io semantics 2020-10-14 22:54:58 +00:00
v3d_nir_lower_line_smooth.c v3d: Add a lowering pass for line smoothing 2020-07-06 21:59:16 +00:00
v3d_nir_lower_logic_ops.c nir: Split NIR_INTRINSIC_TYPE into separate src/dest indices 2020-10-01 18:36:53 +00:00
v3d_nir_lower_robust_buffer_access.c v3d/compiler: add a lowering pass for robust buffer access 2020-10-13 21:21:33 +00:00
v3d_nir_lower_scratch.c
v3d_nir_lower_txf_ms.c
vir.c v3d: do not report alpha-test as supported 2020-10-21 16:33:43 +00:00
vir_dump.c broadcom/compiler: rename QUNIFORM_GET_BUFFER_SIZE to QUNIFORM_GET_SSBO_SIZE 2020-10-13 21:21:33 +00:00
vir_live_variables.c
vir_opt_copy_propagate.c
vir_opt_dead_code.c
vir_opt_redundant_flags.c
vir_opt_small_immediates.c
vir_register_allocate.c v3d/compiler: allow to batch spills 2020-10-13 21:21:33 +00:00
vir_to_qpu.c v3d: Changed v3d_compile:failed to an enum 2020-07-24 12:27:07 +02:00