Jonathan Marek
e8afd40758
turnip: set linear tiling for scanout images
...
Fixes: 210e6887
"vulkan/wsi: Use the interface from the real modifiers extension"
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Acked-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485 >
2020-01-23 18:34:07 +00:00
Jonathan Marek
11f6fba1c9
turnip: hook up GetImageDrmFormatModifierPropertiesEXT
...
Fixes: 210e6887
"vulkan/wsi: Use the interface from the real modifiers extension"
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Acked-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3485 >
2020-01-23 18:34:07 +00:00
Guido Günther
c5334d2943
freedreno/drm: Don't miscalculate timeout
...
The current code overflows (s * 1000000000) for s >= 5 but that is
e.g. used in msm_bo_cpu_prep.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3514 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3514 >
2020-01-23 18:07:13 +00:00
Eric Anholt
b327501dbf
turnip: Add support for fine derivatives.
...
This does appear to be the required instruction sequence (dsxpp_1 dst src;
dsxpp_1.p dst src) as dropping either instruction fails the testsuite.
Fixes dEQP-VK.glsl.derivate.*
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494 >
2020-01-23 17:38:29 +00:00
Eric Anholt
876824908d
freedreno/ir3: Plumb the ir3_shader_variant into legalize.
...
legalize is computing a lot of state that goes in the variant, let's just
store it directly instead of passing pointers around. This leaves
max_bary in place, which is doing some surprising work (overwriting the
original total_in in some cases).
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494 >
2020-01-23 17:38:29 +00:00
Anthony Pesch
f77369086c
util/hash_table: update users to use new optimal integer hash functions
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
2020-01-23 17:06:57 +00:00
Anthony Pesch
1496cc92f6
util/hash_table: added hash functions for integer types
...
A few hash_table users roll their own integer hash functions which
call _mesa_hash_data to perform the hashing which ultimately calls
into XXH32 with a dynamic key length. When using small keys with a
constant size the hash rate can be greatly improved by inlining
XXH32 and providing it a constant key length, see:
https://fastcompression.blogspot.com/2018/03/xxhash-for-small-keys-impressive-power.html
Additionally, this patch removes calls to _mesa_key_hash_string and
makes them instead call _mesa_has_string directly, matching the new
integer hash functions.
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
2020-01-23 17:06:57 +00:00
Anthony Pesch
931388ceca
util/hash_table: replace _mesa_hash_data's fnv1a hash function with xxhash
...
For most key sizes, xxhash outperforms fnv1a's hash rate substantially (bug
2153). In particular, the V3D driver hashes multiple ~200 byte keys as part
of the shader cache lookup which can easily eat up 10-20% of the runtime on
the Raspberry Pi. Swapping over to xxhash drops this to ~1% of the runtime.
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
2020-01-23 17:06:57 +00:00
Anthony Pesch
032f8807f7
util: move fnv1a hash implementation into its own header
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
2020-01-23 17:06:57 +00:00
Anthony Pesch
17fac0e32d
util: import xxhash
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475 >
2020-01-23 17:06:57 +00:00
Michel Dänzer
552028c013
winsys/amdgpu: Close KMS handles for other DRM file descriptions
...
When a BO or amdgpu_screen_winsys is destroyed.
Should fix leaking such BOs in other DRM file descriptions.
v2:
* Pass the correct file descriptor to drmIoctl (Pierre-Eric
Pelloux-Prayer)
* Use _mesa_hash_table_remove
v3:
* Close handles in amdgpu_winsys_unref as well
v4:
* Adapt to amdgpu_winsys::sws_list_lock.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2270
Fixes: 11a3679e3a
"winsys/amdgpu: Make KMS handles valid for original
DRM file descriptor"
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:39:34 +01:00
Michel Dänzer
b60f5cbc15
winsys/amdgpu: Re-use amdgpu_screen_winsys when possible
...
Namely, if os_same_file_description determined that the DRM file
descriptor references the same file description.
v2:
* Adapt to amdgpu_winsys::sws_list_lock.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:39:34 +01:00
Michel Dänzer
f76cbc7901
util: Add os_same_file_description helper
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:39:34 +01:00
Michel Dänzer
c6468f66c7
winsys/amdgpu: Only re-export KMS handles for different DRM FDs
...
When the amdgpu_screen_winsys uses the same FD as the amdgpu_winsys
(which is always the case for the first amdgpu_screen_winsys), we can
just use bo->u.real.kms_handle.
v2:
* Also only create the kms_handles hash table if the
amdgpu_screen_winsys fd is different from the amdgpu_winsys one.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:39:34 +01:00
Michel Dänzer
24075ac60f
winsys/amdgpu: Keep track of retrieved KMS handles using hash tables
...
The assumption being that KMS handles are only retrieved for relatively
few BOs, so hash tables should be efficient both in terms of performance
and memory consumption.
We use the address of struct amdgpu_winsys_bo as the key and its
kms_handle field (the KMS handle valid for the DRM file descriptor
passed to amdgpu_device_initialize) as the hash value.
v2:
* Add comment above amdgpu_screen_winsys::kms_handles (Pierre-Eric
Pelloux-Prayer)
v3:
* Protect kms_handles hash table with amdgpu_winsys::sws_list_lock
mutex.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:24:00 +01:00
Michel Dänzer
f4010a6da9
winsys/amdgpu: Keep a list of amdgpu_screen_winsyses in amdgpu_winsys
...
v2:
* Add dedicated mutex for the list.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3202 >
2020-01-23 17:23:32 +01:00
Samuel Pitoiset
8d5203dad2
aco: implement nir_op_f2i64/nir_op_f2u64 on GFX6
...
V_TRUNC_F64 and V_FLOOR_F64 needs to be lowered on 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/3477 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:48 +01:00
Samuel Pitoiset
4d92601715
aco: implement 64-bit nir_op_ffloor on GFX6
...
GFX6 doesn't have V_FLOOR_F64, it needs to be lowered. Loosely based
on the AMDGPU LLVM backend.
Introduce a new function because it will be useful for some other
64-bit operations.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:45 +01:00
Samuel Pitoiset
fbd169e421
aco: implement 64-bit nir_op_fround_even on GFX6
...
GFX6 doesn't have V_RNDNE_F64, it needs to be lowered. Loosely based
on the AMDGPU LLVM backend.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:42 +01:00
Samuel Pitoiset
87588801d3
aco: implement 64-bit nir_op_fceil on GFX6
...
GFX6 doesn't have V_CEIL_F64, it needs to be lowered. Loosely based
on the AMDGPU LLVM backend.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:38 +01:00
Samuel Pitoiset
aad5176c58
aco: implement 64-bit nir_op_ftrunc on GFX6
...
GFX6 doesn't have V_TRUNC_F64, it needs to be lowered. Loosely based
on the AMDGPU LLVM backend.
Introduce a new function because it will be useful for some other
64-bit operations.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:34 +01:00
Samuel Pitoiset
36e7a5f5b9
aco: implement nir_intrinsic_global_atomic_* on GFX6
...
GFX6 doesn't have FLAT instructions, use MUBUF instructions instead.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:30 +01:00
Samuel Pitoiset
22d8822683
aco: implement nir_intrinsic_load_global on GFX6
...
GFX6 doesn't have FLAT instructions, use MUBUF instructions instead.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:27 +01:00
Samuel Pitoiset
d6af7571c2
aco: implement nir_intrinsic_store_global on GFX6
...
GFX6 doesn't have FLAT instructions, use MUBUF instructions instead.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:24 +01:00
Samuel Pitoiset
01f0bef71e
aco: fix wrong IR in nir_intrinsic_load_barycentric_at_sample
...
Only GFX6 was affected, my mistake. The total number of SGPR operands
should be 4 when we want to create a vec4.
Fixes: dbdf3b3ef9
("aco: implement nir_intrinsic_load_barycentric_at_sample on GFX6")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477 >
2020-01-23 14:40:21 +01:00
Lionel Landwerlin
d101907de9
anv/iris: warn gen12 3DSTATE_HS restriction
...
This should never happen but better off documenting it in case someone
plays with max threads numbers.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3489 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3489 >
2020-01-23 15:06:59 +02:00
Krzysztof Raszkowski
bf74a7f092
gallium/swr: add option for static link
...
Set swr-shared to 'false' to link SWR statically into Mesa.
Only one swr arch can be specified if swr-shared is set to false.
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3510 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3510 >
2020-01-23 12:20:24 +00:00
Samuel Pitoiset
54e54ec3e8
aco: fix printing assembly with CLRXdisasm on GFX6
...
We thought that CLRXdisasm allowed gfx600 as well as gfx700 but
it actually doesn't. Use the family for GFX6 chips instead.
Fixes: 0099f85232
("aco: print assembly with CLRXdisasm for GFX6-GFX7 if found on the system")
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/3531 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3531 >
2020-01-23 11:34:37 +00:00
Pierre Moreau
dda542e912
clover/meson: Define OpenCL header macros
...
Rather than defining the macros any time right before including an
OpenCL header, set Meson to define them for the whole clover project.
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Acked-by: Francisco Jerez <currojerez@riseup.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137 >
2020-01-23 11:12:33 +00:00
Pierre Moreau
dd756b704f
clover: Use the dispatch table type from the OpenCL headers
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2243
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Acked-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137 >
2020-01-23 11:12:33 +00:00
Pierre Moreau
cd1c661cfc
include/CL: Update OpenCL headers to latest
...
This latest update contains a new header that defines the dispatch table
structure in order to avoid OpenCL implementations having to define it
themselves.
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Acked-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137 >
2020-01-23 11:12:33 +00:00
Samuel Pitoiset
12fe19ba3b
radv: advertise VK_AMD_shader_fragment_mask
...
Only for GFX8+ because it's untested on older generations.
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/3304 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
e030aef32c
aco: add support for nir_texop_fragment_{mask}_fetch
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
9e477d79b7
ac/nir: add support for nir_texop_fragment_{mask}_fetch
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
84b08971fb
nir/lower_input_attachments: lower nir_texop_fragment_{mask}_fetch
...
These instructions are allowed to fetch from multisampled
subpass input attachments.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
76a34f5d3f
spirv: add support for SpvOpFragment{Mask}FetchAMD operations
...
nir_tex_src_ms_index is re-used for the fragment index with
nir_texop_fragment_fetch to avoid introducing a new texture source type.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
603e6ba972
nir: add two new texture ops for multisample fragment color/mask fetches
...
This introduces:
- nir_texop_fragment_mask_fetch (fetch a fragment mask from a
compressed multisampled color surface)
- nir_texop_fragment_fetch (fetch a color fragment for a
particular sample at corresponding fragment mask index).
These two texture operations are necessary for implementing
SPV_AMD_shader_fragment_mask.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
dea29b3818
spirv: add SpvCapabilityFragmentMaskAMD
...
This new capability is for SPV_AMD_shader_fragment_mask.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304 >
2020-01-23 10:48:02 +00:00
Samuel Pitoiset
e60de08547
radv: handle missing implicit subpass dependencies
...
When a subpass doesn't declare an explicit dependency from/to
VK_SUBPASS_EXTERNAL, Vulkan says there is an implicit dependency.
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/3330 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3330 >
2020-01-23 11:25:41 +01:00
Samuel Pitoiset
0d2da2a8c0
radv: add explicit external subpass dependencies to meta operations
...
No functional changes because a subpass dependency with dstStageMask
set to VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT is a no-op.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3330 >
2020-01-23 11:25:38 +01:00
Dave Airlie
48ab21109c
gallivm: fix find lsb
...
the GLSL return value is different than the llvm intrinsic.
Fixes arb gpu shader5 tests
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528 >
2020-01-23 13:48:16 +10:00
Dave Airlie
1e433c398e
galllivm: fix gather offset casting
...
cast texture offsets to 32-bit integers
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528 >
2020-01-23 13:48:16 +10:00
Dave Airlie
fc9d67394d
llvmpipe: fix some integer instruction lowering.
...
We want to lower to shifts for bitfields, and lower ifind_msb.
Fixes a bunch of gpu shader5 tests.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528 >
2020-01-23 13:48:16 +10:00
Dave Airlie
6c88c81df9
gallivm: fix gather component handling.
...
Fixes the extended gather test for gpu shader5
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528 >
2020-01-23 13:48:16 +10:00
Eric Anholt
65e432695d
turnip: Add support for uniform texel buffers.
...
Pretty straightforward: Port texture descriptor code from freedreno, fill
in alignment limits from closed vk, and tu_cmd_buffer.c was already
uploading the texture descriptor.
This doesn't implement storage texel buffers (required in the compute
pipeline) yet, since those will need an IBO descriptor for the store path.
Still, making the load path be connected to the texture descriptor won't
hurt.
Part of #2237
Fixes dEQP-VK.binding_model.shader_access.primary_cmd_buf.uniform_texel_buffer.*
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3522 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3522 >
2020-01-23 02:40:09 +00:00
Kenneth Graunke
8dc0540a17
intel: Fix aux map alignments on 32-bit builds.
...
ALIGN() brilliantly uses uintptr_t, making it unsafe for use with 64-bit
GPU addresses in 32-bit builds of the driver. Use align64() instead,
which uses uint64_t.
Fixes assertion failures when running any 32-bit program on Tigerlake.
Fixes: 2e6a7ced4d
("iris/gen12: Write GFX_AUX_TABLE base address register")
Fixes: 0d0290bb3f
("intel/common: Add surface to aux map translation table support")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3507 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3507 >
2020-01-23 02:16:50 +00:00
Matt Turner
4413537c80
util: Remove tmp argument from BITSET_FOREACH_SET macro
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499 >
2020-01-23 01:52:43 +00:00
Matt Turner
d3eb2a0951
util: Explain BITSET_FOREACH_SET params
...
__size, in particular, makes this macro rather confusing to understand
how to use. Hopefully this comment saves future users the headache.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499 >
2020-01-23 01:52:42 +00:00
Vasily Khoruzhick
60f9b45802
lima: implement invalidate_resource()
...
We don't need to resolve invalidated resources, so it should
improve performance for applications that are doing this hint.
Reviewed-by: Qiang Yu <yuq825@gmail.com >
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3476 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3476 >
2020-01-23 01:26:23 +00:00
Timothy Arceri
bf830250a7
glsl_to_nir: update interface type properly
...
Since 76ba225184
the member variable types were being redefined
but we assigned the old interface type to the variable.
In a following patch series we will use the types to check if we
are dealing with an interface instance when apply GLSL linking
rules.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3468 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3468 >
2020-01-23 01:02:25 +00:00