Samuel Pitoiset
0d14f41625
aco: fix MUBUF VS input loads when expanding vec3 to vec4 on GFX6
...
When some unused channels are skipped and that we expand vec3 loads
to vec4 loads, we have to adjust the fourth component.
While we are at it, add an assertion to make sure we don't use
MUBUF for vec3 loads on GFX6.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2450
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2442
Fixes: 6aecc316 ("aco: fix VS input loads with MUBUF on GFX6")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3641 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3641 >
2020-01-31 13:48:56 +01:00
Krzysztof Raszkowski
d8410fec4e
gallium/swr: Fix gcc 4.8.5 compile error
...
Stop using C++14 feature so it can be compile on default centos7
gcc compiler.
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3640 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3640 >
2020-01-31 10:40:54 +00:00
Vinson Lee
8dacf5f9d1
swr: Fix build with GCC 10.
...
GCC 10 added _mm256_storeu2_m128i.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91341
This patch fixes this build error with GCC 10.
In file included from src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.cpp:39:
../src/gallium/drivers/swr/rasterizer/common/os.h:178:20: error: ‘void _mm256_storeu2_m128i(__m128i*, __m128i*, __m256i)’ redeclared inline without ‘gnu_inline’ attribute
178 | static INLINE void _mm256_storeu2_m128i(__m128i* hi, __m128i* lo, __m256i a)
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h:51,
from /usr/lib/gcc/x86_64-redhat-linux/10/include/x86intrin.h:32,
from ../src/gallium/drivers/swr/rasterizer/common/os.h:107,
from src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.cpp:39:
/usr/lib/gcc/x86_64-redhat-linux/10/include/avxintrin.h:1580:1: note: ‘void _mm256_storeu2_m128i(__m128i_u*, __m128i_u*, __m256i)’ previously defined here
1580 | _mm256_storeu2_m128i (__m128i_u *__PH, __m128i_u *__PL, __m256i __A)
| ^~~~~~~~~~~~~~~~~~~~
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3650 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3650 >
2020-01-31 10:18:53 +00:00
Krzysztof Raszkowski
790516db0b
gallium/swr: fix gcc warnings
...
Few changes to make gcc happy.
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3629 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3629 >
2020-01-31 09:52:27 +00:00
Erik Faye-Lund
8405e1bef0
zink: implement support for derivative-control
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3645 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3645 >
2020-01-31 08:56:55 +00:00
Erik Faye-Lund
f12b844e7c
zink: implement load_instance_id
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3644 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3644 >
2020-01-31 08:40:24 +00:00
Erik Faye-Lund
c0ced1e79b
zink: enable texture-buffer objects
...
This seems to work as-is, and just need enabling. There's a few piglit
failures, but those seems to be problems with the tests, where they
don't handle lacking GL3-support.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3647 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3647 >
2020-01-31 08:23:07 +00:00
Zhang, Boyuan
00edb82fde
radeonsi: Add support for midstream bitrate change in encoder
...
BACKPORT: Remove |picture| argument from enc->begin in radeon_vcn_enc.c
Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3426 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3426 >
2020-01-31 07:47:36 +00:00
Tomeu Vizoso
d902e23d80
panfrost: Use DBG macro to avoid noise in the console
...
It pollutes the output of programs that use Panfrost and can confuse its
callers, such as test runners.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625 >
2020-01-31 06:02:31 +00:00
Tomeu Vizoso
2504206221
pan/midgard: Handle nir_intrinsic_load_barycentric_centroid
...
To avoid hitting the assert in the default case, add a nop for this
intrinsic.
dEQP-GLES3.functional.transform_feedback.random.interleaved.lines.3
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625 >
2020-01-31 06:02:31 +00:00
Tomeu Vizoso
226c1efe9a
panfrost: Add more info to some assertions
...
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625 >
2020-01-31 06:02:31 +00:00
Tomeu Vizoso
2d5c433aee
panfrost: Print intended field when decoding
...
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625 >
2020-01-31 06:02:31 +00:00
Jason Ekstrand
8c5fd2942b
anv: Always fill out the AUX table even if CCS is disabled
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:31 -06:00
Jason Ekstrand
2ccdf881ab
iris: Plumb deref block size through to 3DSTATE_SF
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:30 -06:00
Jason Ekstrand
e6b39850f0
anv: Plumb deref block size through to 3DSTATE_SF
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:28 -06:00
Jason Ekstrand
ce9c45a60e
intel/blorp: Plumb deref block size through to 3DSTATE_SF
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:27 -06:00
Jason Ekstrand
fdc0c19328
intel/common: Return the block size from get_urb_config
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:26 -06:00
Jason Ekstrand
e340a79b9c
anv: Emit URB setup earlier
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:24 -06:00
Jason Ekstrand
e928676b69
iris: Consolodate URB emit
...
Now that we don't have to carry a URB state emit function for BLORP we
can roll some stuff together and drop a genX helper.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:22 -06:00
Jason Ekstrand
09e4c33085
intel/blorp: Always emit URB config on Gen7+
...
Previously, i965/iris tried to reuse the currently programmed URB config
if it was good enough for BLORP, rather than reprogramming it each time.
However, this will make some things harder on Gen12+ and we've not seen
any performance impact from emitting URB more frequently in ANV.
This makes the blorp <-> driver interface a bit simpler on Gen7+ because
now all the driver has to do is to provide the L3$ config rather than
trying to hand off URB re-config to blorp.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:20 -06:00
Jason Ekstrand
73a684964b
intel: Take a gen_l3_config in gen_get_urb_config
...
Instead of making each driver pass in the same push constant size and do
it's own L3$ config URB size calculation, just make them pass in their
L3$ configuration.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:18 -06:00
Jason Ekstrand
9d05822cb8
i965: Re-emit l3 state before BLORP executes
...
If BLORP is the first thing to execute, we may not have set the L3$
config yet. That's not normally a problem but we're about to add code
to BLORP which will look at brw_context::l3::config and we'd like that
to be initialized. It's also just good practice.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:16 -06:00
Jason Ekstrand
bff7b3c7bd
iris: Use the URB size from the L3$ config
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:14 -06:00
Jason Ekstrand
99f3178a24
iris: Store the L3$ configs in the screen
...
We only calculate them based on device info and never change them so
this seems like a reasonable place to put them. We could also put them
in the context, but that's not accessible from iris_init_*_context.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:13 -06:00
Jason Ekstrand
6471bac99e
iris: Set SLMEnable based on the L3$ config
...
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:46:10 -06:00
Jason Ekstrand
73434b665b
intel/genxml: Drop SLMEnable from L3CNTLREG on Gen11
...
SML is no longer in the L3$ on Gen11+. It's not incredibly clear from
the docs but no Gen11 platforms are in the list of platforms on which
this bit exists. Also, we've been always setting it false on Gen11 in
ANV and i965 thanks to GEN_L3P_SLM being zero with no ill effects.
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:45:53 -06:00
Jason Ekstrand
e1bdb127b6
anv,iris: Set 3DSTATE_SF::DerefBlockSize to per-poly on Gen12+
...
According to the BSpec, this should prevent hangs when using shaders
with large URB entries. A more precise fix can be done but it requires
re-arranging URB setup.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:45:52 -06:00
Jason Ekstrand
9da9abf8a7
genxml: Add a new 3DSTATE_SF field on gen12
...
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454 >
2020-01-30 18:45:49 -06:00
Dylan Baker
21dd0a1514
docs/release-calendar: 20.0.0-rc1 has been released
2020-01-30 14:43:17 -08:00
Brian Ho
58fd26c433
turnip: Fix vkCmdCopyQueryPoolResults with available flag
...
Previously, calling vkCmdCopyQueryPoolResults with the
VK_QUERY_RESULT_WITH_AVAILABILITY_BIT flag set the query result
field in the buffer to 0 if unavailable and the query result if
available. This was a misunderstanding of the Vulkan spec, and this
commit corrects the behavior to emitting a separate available
result in addition to the query result.
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3560 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3560 >
2020-01-30 20:30:46 +00:00
Brian Ho
1a3e2a7fa8
turnip: Fix vkGetQueryPoolResults with available flag
...
Previously, calling vkGetQueryPoolResults with the
VK_QUERY_RESULT_WITH_AVAILABILITY_BIT flag set the query result
field in *pData to 0 if unavailable and the query result if
available. This was a misunderstanding of the Vulkan spec, and this
commit corrects the behavior to eriting a separate available result
in addition to the query result.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3560 >
2020-01-30 20:30:46 +00:00
Brian Ho
1c3319cf81
turnip: Free event->bo on vkDestroyEvent
...
Fixes a leak from freeing event but not event->bo.
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639 >
2020-01-30 18:50:06 +00:00
Kenneth Graunke
594cb30356
loader: Fix leak of kernel driver name
...
This is strdup'd, it needs to be freed.
CID: 1458032
Fixes: f93bb2fb102 ("loader: Check if the kernel driver is i915 before loading iris")
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3630 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3630 >
2020-01-30 10:08:17 -08:00
Jan Zielinski
f09c466732
docs: Update SWR tessellation support
...
Update features.txt to reflect ARB_tessellation_shader
support in SWR
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3636 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3636 >
2020-01-30 11:18:15 +00:00
Kenneth Graunke
bdba744d70
i965: Use brw_batch_references in tex_busy check
...
If the batch references the buffer, we will have to flush the batch
immediately before mapping it, at which point it will be busy.
(This bug has existed for a long time...even going back to BLT-era...)
Fixes: 779923194c ("i965/tex_image: Use meta for instead of the blitter PBO TexImage and GetTexImage")
Fixes: d5d4ba9139 ("i965/tex_subimage: use meta instead of the blitter for PBO TexSubImage")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3616 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3616 >
2020-01-30 10:01:21 +00:00
Christian Gmeiner
d3fa18a1fa
etnaviv: drm-shim: add GC400
...
These are the ETNAVIV_PARAM's returned from a GC400 found on a
STM32MP157C-DK2 Discovery Board running mainline kernel.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3195 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3195 >
2020-01-30 04:05:39 +00:00
Qiang Yu
c5e4d28724
lima: add noheap debug option
...
Disable using heap buffer when set.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3264 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3264 >
2020-01-30 03:39:21 +00:00
Qiang Yu
b220aec628
lima: create heap buffer with new interface if available
...
Newly added heap buffer create interface can create a
large enough buffer whose backup memory can increase
dynamically as needed.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3264 >
2020-01-30 03:39:21 +00:00
Qiang Yu
92465cc999
lima: sync lima_drm.h with kernel
...
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3264 >
2020-01-30 03:39:21 +00:00
Icenowy Zheng
cd30c4d719
lima: fix lima_set_vertex_buffers()
...
When setting the vertex buffers, lima calls
util_set_vertex_buffers_mask() to reference and copy buffers. That
function
function adds dst with start_slot internally, so lima should not offset
the destination address again.
This is discovered when comparing with other drivers, and fixed by
removing the extra offset in lima_set_vertex_buffers().
This fixes draws that get translated in u_vbuf, because u_vbuf adds
extra vertex buffers when translating.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io >
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de >
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3620 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3620 >
2020-01-30 07:51:35 +08:00
Jonathan Marek
1c5d84fcae
turnip: hook up cmdbuffer event set/wait
...
Gets some basic tests under "dEQP-VK.synchronization.*event*" passing
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3123 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3123 >
2020-01-29 23:13:43 +00:00
Christian Gmeiner
5b5b762475
etnaviv: drop default state for PE_STENCIL_CONFIG_EXT2
...
It gets emitted when needed.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3631 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3631 >
2020-01-29 23:31:04 +01:00
Daniel Schürmann
d78e0de772
docs: add new features for RADV/ACO.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3627 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3627 >
2020-01-29 22:05:37 +00:00
Samuel Pitoiset
3a3b16a395
radv: refactor physical device properties
...
Based on ANV. This removes a bunch of duplicated code for properties.
Fixes: 1b8d99e288 ("radv: bump conformance version to 1.2.0.0")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3626 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3626 >
2020-01-29 21:44:56 +00:00
Rob Clark
5b9fe18485
freedreno: remove flush-queue
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00
Rob Clark
b3b1fa5e2b
freedreno: add gmem_lock
...
The gmem state is split out now, so it does not require synchronization.
But gmem rendering still accesses vsc state from the context.
TODO maybe there is a better way? For gen's that don't do vsc resizing,
this is probably easier.. but for a6xx there isn't really a great
position for more fine grained locking. Maybe it doesn't matter since
in practice the lock shouldn't be contended.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00
Rob Clark
91f9bb99c5
freedreno: add gmem state cache
...
Which also has the benefit of getting rid of fd_context::gmem.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00
Rob Clark
712f8802ee
freedreno: get GMEM state from batch
...
Prep work to reduce churn in next patch.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00
Rob Clark
4bcc3a0923
freedreno/a2xx: constify gmem state
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00
Rob Clark
5d442144ae
freedreno/a3xx: constify gmem state
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3503 >
2020-01-29 21:19:41 +00:00