Dylan Baker
fbfc8c3531
docs: Mark 20.0-rc2 as done
...
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3751 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3751 >
2020-02-07 09:02:02 -08:00
Martin Fuzzey
d8bae10bfe
freedreno: android: fix build of perfcounters.
...
Some dependencies were missing on android causing a build failure.
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736 >
2020-02-07 16:34:49 +00:00
Martin Fuzzey
fad9924315
freedreno: android: add a6xx-pack.xml.h generation to android build
...
The generation of a6xx-pack.xml.h was missing in the android build scripts
leading to a build failure.
Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736 >
2020-02-07 16:34:49 +00:00
Martin Fuzzey
cad400a59e
freedreno: android: fix build failure on android due to python version
...
The freedreno gen_header.py script now only works under python3.
It contains a "print()" call which prints a blank line under python3
but prints "()" under python2.7.
However the Android build currently uses python2.
This leads to incorrect code generation and a later build error.
.../STATIC_LIBRARIES/libfreedreno_registers_intermediates/registers/adreno_common.xml.h:163:2: error: expected identifier or '('
()
Fix this by adding MESA_PYTHON3 and using it for the freedreno scripts.
Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736 >
2020-02-07 16:34:49 +00:00
Krzysztof Raszkowski
ff8265b64f
gallium/swr: Fix llvm11 compilation issues
...
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3747 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3747 >
2020-02-07 15:03:55 +00:00
Georg Lehmann
f239bb8020
Vulkan Overlay: Don't try to change the image layout to present twice
...
The render pass already does the transition.
The pipeline barrier is still needed to transfer the queue family ownership.
Fixes: 320b0f66c2 ("vulkan/overlay: bounce image back to present layout")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740 >
2020-02-07 14:23:23 +00:00
Samuel Pitoiset
4b978cd950
aco: do not use ds_{read,write}2 on GFX6
...
According to LLVM, these instructions have a bounds checking bug.
LLVM only uses them on GFX7+.
This fixes broken geometry in Assassins Creed Origins.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2489
Fixes: 4a553212fa ("radv: enable ACO support for GFX6")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746 >
2020-02-07 14:17:06 +01:00
Tapani Pälli
da76dfb515
intel/vec4: fix valgrind errors with vf_values array
...
Fixes valgrind errors introduced since commit a8ec4082 .
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2346
Fixes: a8ec4082 ("nir+vtn: vec8+vec16 support")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3691 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3691 >
2020-02-07 09:06:18 +00:00
Andreas Baierl
1572e8f3e1
lima/parser: Change value name in RSW parser
...
Second value of SHADER_ADDRESS is the length of the first instruction
in the shader, so give it a better name.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619 >
2020-02-07 09:26:32 +01:00
Andreas Baierl
5802259e54
lima/parser: Extend AUX0 findings
...
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619 >
2020-02-07 09:26:32 +01:00
Andreas Baierl
cebfb3169c
lima/parser: Fix RSW depth test parsing
...
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619 >
2020-02-07 09:26:32 +01:00
Leandro Ribeiro
eaa0784fd3
i965: remove duplicated comment
...
Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2416 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2416 >
2020-02-07 07:14:20 +02:00
Kristian H. Kristensen
26ab38f144
ci: Drop turnip opt-in option
...
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3742 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3742 >
2020-02-07 01:36:58 +00:00
Dave Airlie
fbc117cba3
llvmpipe: advertise 4 vertex streams
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
7e6690b1a6
draw: don't emit vertex to streams with no outputs
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
72154c9075
draw: emit multiple streams to streamout.
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
00c066e5a0
draw/gs: track emitted prims + verts per stream.
...
This adds tracking of the emitted prims/verts per-stream.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
0c77007c9d
draw: change geom shader output to an array of outputs.
...
Instead of a single output ptr, pass in one per output stream.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
8583fcd8f1
gallivm/nir: add support for multiple vertex streams
...
This adds support to the nir shader build for multiple vertex streams
we store separate stats for each stream, then write them out in the epilogue.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
b668841313
gallivm/swr: add stream_id to geom epilogue emit
...
We want to pass a stream in here so we can write out separate
prim/vertex counts for each stream at the end.
This also adds an ignore any stream option so we can stage more code
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Dave Airlie
9d70002744
llvmpipe/query: add support for indexed queries
...
This adds support for the queries needed for gpu_shader5 vertex streams
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530 >
2020-02-07 00:54:42 +00:00
Eric Anholt
658eb691fc
ci: Bump the GLES CTS version to 3.2.6.1.
...
This brings in the surfaceless fixes so we don't need to check out the
whole repo to cherry pick any more (which was bothering me as I debugged
things late in the painfully slow ARM container build process).
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662 >
2020-02-06 15:18:24 -08:00
Eric Anholt
b37922dd1e
ci: Disable a bunch of tests on freedreno a630.
...
On a daily basis I've been having to restart people's a630 jobs in the
front couple of pages of /merge_requests due to spurious failures from our
flaky tests, and fielding reports of spurious fails from other developers,
and babysitting my own marge merges that are failing due to our flakes.
Nobody should have to deal with that, especially not non-freedreno
developers, so just scrape the list of flakes reported to #freedreno-ci
for the last month and ban those tests that have failed more than once
until we have a credible fix.
Acked-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662 >
2020-02-06 15:18:15 -08:00
Kristian H. Kristensen
b3063cbd18
turnip: Drop explicit configure opt-in for turnip
...
We don't need this silly thing anymore. Everthing here is WIP.
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3739 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3739 >
2020-02-06 13:23:40 -08:00
Eric Anholt
4ca77f347d
u_tile: Skip the packed temporary and just store tiles directly.
...
We were generating a packed copy and then memcpying it, but we can just
pack directly to the destination. Change on glmark2 -b build:use-vbo=true
is modest: 1.06328% +/- 0.994771% (n=84) but does remove the function that
was .6% of CPU time.
I'm not doing the equivalent "get" path at this time because softpipe's
texture cache has some clipping issues that get revealed.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698 >
2020-02-06 20:48:03 +00:00
Jose Maria Casanova Crespo
68bb26af63
broadcom: Fix implicit declaration of ffs for Android build
...
Include util/bitscan.h to ensure ffs is available when there is no
glibc like in Android.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1983
Reviewed-by: Eric Anholt <eric@anholt.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554 >
2020-02-06 18:31:13 +01:00
Rhys Perry
ce23911b77
aco: gfx10_wave64_bpermute reduce op to print_ir
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683 >
2020-02-06 16:43:03 +00:00
Rhys Perry
20eb1acb6f
aco: fix gfx10_wave64_bpermute
...
Since 9254fb4fc7 , the pass replaced the SCC clobber with the scalar
identity temporary. Just skip most of the temporary setup, since we don't
need it for gfx10_wave64_bpermute.
Although shuffles are disabled on GFX10, Detroit: Become Human seems to
use them anyway.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com >
Fixes: 9254fb4fc7 ('aco: don't use a scalar
temporary for reductions on GFX10')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683 >
2020-02-06 16:43:03 +00:00
Georg Lehmann
1c79afd946
Correctly wait in the fragment stage until all semaphores are signaled
...
This fixes two issues:
- a crash if the application uses more than one semaphore for presenting because the driver expects one stage per semaphore
- the swapchain image could be not ready yet if the semaphores aren't signaled, #946 is possible related
Cc: <mesa-stable@lists.freedesktop.org >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718 >
2020-02-06 15:16:47 +00:00
Thomas Hellstrom
451cf228d5
svga: Fix banded DMA upload
...
A previous commit ("winsys/svga: Limit the maximum DMA hardware buffer
size") made banded DMA transfer kick in when transfering gnome-shell
window contents under gnome-shell / wayland. This uncovered a bug where
we assumed that banded DMA transfers always occur to the top (y=0) of the
surface.
Fix this by taking the destination y offset into account.
Cc: 19.2 19.3 20.0 <mesa-stable@lists.freedesktop.org >
Fixes: 287c94ea49 ("Squashed commit of the following:")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Charmaine Lee <charmainel@vmware.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733 >
2020-02-06 11:26:04 +00:00
Jason Ekstrand
5aec9e84a8
anv: No-op submit and wait calls when no_hw is set
...
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3734 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3734 >
2020-02-06 10:48:33 +00:00
Lionel Landwerlin
f9febfae41
anv: set MOCS on push constants
...
v2: Also set MOCS on 3DSTATE_CONSTANT_ALL (Ken)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 67d2cb3e93 ("anv: Add get_push_range_address() helper.")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3732 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3732 >
2020-02-06 10:10:11 +00:00
Michel Dänzer
a140ea1ced
llvmpipe: Bump test timeout to 180 seconds
...
120 still wasn't always enough for the s390x cross-build job, see e.g.
https://gitlab.freedesktop.org/mesa/mesa/-/jobs/1551685
Reviewed-by: Daniel Stone <daniels@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3715 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3715 >
2020-02-06 09:41:28 +00:00
Rafael Antognolli
4aa7af9e9a
intel: Load the driver even if I915_PARAM_REVISION is not found.
...
This param is only available starting on kernel 4.1. Use a default
value of 0 if it is not found instead.
v2: Update commit message (Lionel)
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Mark Janes <mark.a.janes@intel.com >
Fixes: 96e1c945f2 ("i965: Move device info initialization to common
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727 >
2020-02-06 09:46:51 +02:00
Kenneth Graunke
20bcbcd958
isl: Fix the android build.
...
Fixes: 5bea0cf779 ("intel/isl: Move iris's pipe-to-isl format function to isl.")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729 >
2020-02-05 21:31:40 -08:00
Kenneth Graunke
a92be2fb26
intel/genxml: Drop "reserved" enum
...
This was adding "#define reserved 2" to genxml includes, which is a
fairly mean lowercase word to redefine. It ends up breaking the build
on Android, which has __u32 reserved fields in headers.
Defining it also has no purpose. Just drop it.
Fixes: 5bea0cf779 ("intel/isl: Move iris's pipe-to-isl format function to isl.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729 >
2020-02-05 21:31:27 -08:00
Vinson Lee
deb2bbf57e
swr: Fix GCC 4.9 checks.
...
Fixes: f0a22956be ("swr/rast: _mm*_undefined_* implementations for gcc<4.9")
Fixes: e21fc2c625 ("swr/rast: non-regex knob fallback code for gcc < 4.9")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
2020-02-05 19:39:13 -08:00
James Xiong
205ce0bea5
gallium: let the pipe drivers decide the supported modifiers
...
fixes: ac0219cc5b ("gallium: dmabuf support for yuv formats that are not natively supported")
Signed-off-by: James Xiong <james.xiong@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527 >
2020-02-06 00:43:58 +00:00
James Xiong
d8569baaed
iris: handle the failure of converting unsupported yuv formats to isl
...
Signed-off-by: James Xiong <james.xiong@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527 >
2020-02-06 00:43:58 +00:00
Eric Engestrom
76f300f2e4
Revert "egl: put full path to libEGL_mesa.so in GLVND json"
...
This reverts commit 0021f7dc30 .
That commit had 2 issues:
- I missed the `.0` from the filename, causing issues on Debian & Ubuntu
platforms.
- I didn't think about multilib/multi-arch systems, where we'd now need
a separate json for each arch as they point to different libs.
Reverting this commit for now, I'll try again later.
Requested-by: Michel Dänzer <michel@daenzer.net >
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2466
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2471
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2480
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3726 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3726 >
2020-02-06 00:19:13 +00:00
Eric Engestrom
9595b23a45
meson: don't bother trying python2
...
Meson requires `python3`, so we know it's there, no need to fall back to
python2.
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3701 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3701 >
2020-02-05 23:17:26 +00:00
Timur Kristóf
4d34abd15c
aco/optimizer: Don't combine uniform bool s_and to s_andn2.
...
Fixes: 8a32f57fff
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714 >
2020-02-05 22:53:45 +00:00
Eric Anholt
a77c3d5eed
nouveau: Reuse tgsi_get_gl_varying_semantic().
...
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506 >
2020-02-05 22:26:00 +00:00
Eric Anholt
f4f769c851
nouveau: reuse tgsi_get_gl_frag_result_semantic().
...
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Tested-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506 >
2020-02-05 22:25:59 +00:00
Eric Anholt
f9358f6f76
nouveau: Reuse tgsi_get_sysval_semantic().
...
It's now in a place accessible from the nouveau driver.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Tested-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506 >
2020-02-05 22:25:59 +00:00
Eric Anholt
e25967d6b8
mesa/st: Move the SYSTEM_VALUE -> TGSI_SEMANTIC map to tgsi_from_mesa.
...
This will let us reuse the table from nir-to-tgsi.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506 >
2020-02-05 22:25:59 +00:00
Kristian H. Kristensen
9891062642
freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSED
...
This brings back fd6_fill_ubwc_buffer_sizes() to implement
layout_resource_for_modifier for DRM_FORMAT_MOD_QCOM_COMPRESSED.
Fixes: ecd62ff766 "freedreno: Allow UBWC on textures with multiple mipmap levels."
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704 >
2020-02-05 20:53:32 +00:00
Kristian H. Kristensen
d233c8c914
freedreno: Add layout_resource_for_modifier screen vfunc
...
This function is responsible for completing the layout for an imported
resource with the given modifier. Returns 0 on success or -1 If the
modifier is unsupported, invalid or the input parameters are not
compatible with the modifier.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704 >
2020-02-05 20:53:32 +00:00
Kristian H. Kristensen
af6fb4f0a9
freedreno: Set up supported modifiers in fd*_resource_screen_init()
...
Keep the modifier logic together.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704 >
2020-02-05 20:53:32 +00:00
Kristian H. Kristensen
d0a7c8f4a8
freedreno/a6xx: Add fd6_resource_screen_init()
...
We'll move a few things here in the next commits.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704 >
2020-02-05 20:53:32 +00:00