[Freedreno] [PATCH] freedreno/a4xx: add ARB_framebuffer_no_attachments support

2017-11-25 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- docs/features.txt| 4 ++-- src/gallium/drivers/freedreno/a4xx/fd4_screen.c | 5 + src/gallium/drivers/freedreno/freedreno_screen.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/features.txt b/docs/fe

[Freedreno] [PATCH 2/2] freedreno/a4xx: add indirect draw support

2017-11-25 Thread Ilia Mirkin
This is a copy of the a5xx logic. Fails a few tests, but basic functionality is there. Signed-off-by: Ilia Mirkin --- docs/features.txt| 6 ++--- src/gallium/drivers/freedreno/a4xx/fd4_draw.h| 29 src/gallium/drivers/freedreno/freedre

[Freedreno] [PATCH 1/2] freedreno: regenerate pm4 header, adjust code for new names

2017-11-25 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/freedreno/a5xx/fd5_compute.c | 6 +- src/gallium/drivers/freedreno/a5xx/fd5_draw.h| 2 +- src/gallium/drivers/freedreno/adreno_pm4.xml.h | 277 ++- 3 files changed, 171 insertions(+), 114 deletions(-) diff --git a/s

[Freedreno] [PATCH v2 1/2] nir: allow texture offsets with cube maps

2017-11-25 Thread Ilia Mirkin
GL doesn't have this, but some hardware supports it. This is convenient for lowering tg4 to plain texture calls, which is necessary on Adreno A4xx hardware. Signed-off-by: Ilia Mirkin Reviewed-by: Jason Ekstrand --- v1 -> v2: shuffled code around to use an if ladder src/compiler/nir/nir.h | 1

[Freedreno] [PATCH v2 2/2] freedreno/ir3: add a pass to lower tg4 to txl, enable gather on a4xx

2017-11-25 Thread Ilia Mirkin
Unfortunately Adreno A4xx hardware returns incorrect results with the GATHER4 opcodes. As a result, we have to lower to 4 individual texture calls (txl since we have to force lod to 0). We achieve this using offsets, including on cube maps which normally never have offsets. Signed-off-by: Ilia Mir

[Freedreno] [PATCH] drm/msm/mdp4: Deduplicate bus_find_device() by name matching

2017-11-25 Thread Lukas Wunner
No need to reinvent the wheel, we have bus_find_device_by_name(). Signed-off-by: Lukas Wunner --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h i