Guilherme Gallo
460ce7e75d
gitlab-ci: Implement a simple timeout detection for LAVA jobs
...
* Retry twice if the job does not generates logs for 5 minutes.
* Only active the timeout detection when the job starts.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12808 >
2021-09-10 13:01:16 -03:00
Guilherme Gallo
2587fa1570
gitlab-ci: Add sleep for every scheduler.jobs.logs call
...
Add a time.sleep call between proxy.scheduler.jobs.logs calls, since
they do not block. This will relieve some request pressure on LAVA
dispatchers.
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12797 >
2021-09-10 12:34:26 +00:00
Danylo Piliaiev
45801e1ecc
turnip: support tracing of gmem/sysmem load/store/clears
...
Now we support per-tile tracing.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
4092d5f0d8
u_trace: pass command stream through tracing functions
...
Allows writing timestamps into different command streams.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
5c6f0d46e7
turnip/perfetto: reusable command buffers support
...
The limitation is that the reusable command buffer should be created
when perfetto is already connected in order to write timestamps.
Otherwise such cmd buffer won't be traces.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
0565c993f9
u_trace: helpers for tracing tiling GPUs and re-usable VK cmdbuffers
...
Re-usable command buffer could be resubmitted any number of times,
but tracepoints are written once. u_trace_clone_append allows
copying tracepoints and copying timestamps if GPU doesn't support
writing timestamps into indirect address.
The case of tiling GPUs is similar, command stream for draws is
resubmitted for each tile.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
3dd1bb6355
turnip: implement basic perfetto support
...
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
cefaa73909
util/u_trace: auto-generation of serialization funcs for tracepoints
...
Add ability to auto-generate:
- printing of args for "GPU_TRACE=1", still could be overriden with
tp_print.
- population of extra data for perfetto event.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Danylo Piliaiev
e14f525280
util/u_trace: make u_trace usable for other than gallium drivers
...
With little modifications u_trace could be usable for Vulkan drivers.
Beside removing dependencies on gallium, the other notable change is
the passing of opaque flush_data pointer via u_trace_flush. There
is data which becomes available only at this point which other drivers
may want to pass.
For example Vulkan drivers would want to pass at least submission id
(for perfetto) and a sync object to wait on in u_trace_read_ts.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969 >
2021-09-10 14:58:28 +03:00
Connor Abbott
9033916d84
ir3: Add bar to beginning of HS with tess_use_shared
...
This matches the blob. In theory, this is necessary only because the
VS/HS workgroup can now span more than one wave and a patch may be
assigned to different waves in the VS and HS. However I've seen it fix
tests where the entire draw should fit in one wave, so there may some
other sort of waiting this does or the HW dispatch may be inefficient
sometimes.
Fixes
EQP-VK.tessellation.user_defined_io.per_patch.vertex_io_array_size_implicit.*
when run immediately after
dEQP-VK.tessellation.invariance.outer_triangle_set.quads_fractional_even_spacing
or when all of dEQP-VK.tessellation.* is run in sequence on a650.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12791 >
2021-09-10 10:05:52 +00:00
Boris Brezillon
6c286edc53
panvk: Disable the BO cache
...
This makes it easier to debug memory leaks, and we probably want to
rely on vulkan caches anyway, so let's just disable the BO cache.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:42:21 +02:00
Boris Brezillon
ef48b6c4d0
panvk: Only set PAN_DBG_TRACE if PANVK_DEBUG_TRACE is set
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:42:14 +02:00
Boris Brezillon
1b53600ff4
panvk: Don't take a BO reference when binding memory to an image
...
Memory is never unbound, and vulkan mandates that the memory stays around
for the image lifetime, unless another chunk of memory is bound to this
image. Let's keep things simple and don't take a reference on the BO
we bind to an image, this way, the memory gets released as soon as
vkFreeMemory() is called.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:42:07 +02:00
Boris Brezillon
81e8a5d83a
panvk: Initialize clear values to zero when load_op != OP_CLEAR
...
This is easier to detect when something goes wrong with this default
initialization in place.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:59 +02:00
Boris Brezillon
55e3d0e256
panvk: Fix a BO leak in panvk_pool_alloc_backing()
...
When picking a BO from a BO pool, we need to add it to the memory pool
otherwise it gets lost when the memory pool is reset/destroyed.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:54 +02:00
Boris Brezillon
cb5415396d
panvk: Reset panvk_pool->transient_bo in panvk_pool_reset()
...
Fixes a use-after-free issue.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:46 +02:00
Boris Brezillon
4a178cf858
panvk: Close the panfrost device in the panvk_physical_device_init() error path
...
Otherwise some resources stay around.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:39 +02:00
Boris Brezillon
f0be7dc745
panvk: Don't allocate an array of blend constants
...
Those are shared by all render targets.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:34 +02:00
Boris Brezillon
2c4b8f9168
panvk: Clamp blend constants before copying them to the cmdbuf state
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:29 +02:00
Boris Brezillon
8182f7a981
panvk: Narrow the allow-forward-pixel-kill condition
...
Setting it to info->fs.can_fpk is wrong. Let's mimic the gallium driver
here.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:41:23 +02:00
Boris Brezillon
c0e43b844c
panvk: Fix chan_size calculation in panvk_emit_blend()
...
Only the first channel was taken into account.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:54 +02:00
Boris Brezillon
6f670bc355
panvk: Don't advertise min/max filter
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:48 +02:00
Boris Brezillon
08a06dbee5
panvk: We don't support linear filtering on integer formats
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:40 +02:00
Boris Brezillon
09aab6471d
panvk: Only advertise MSAA-4
...
We'll see if we want to support MSAA 8 and 16 later. MSAA 2 is not
supported.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:34 +02:00
Boris Brezillon
393615510d
panvk: Fix blend descriptor emission
...
Got the round_to_fb_precision wrong when rebasing the the per-gen XML
changes. Fix it now.
Fixes: 792a0ab0b1 ("panvk: Prepare per-gen split")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:29 +02:00
Boris Brezillon
3c73ac53c7
panvk: Don't use pan_is_bifrost()
...
Leftovers from the per-gen XML transition patch.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762 >
2021-09-10 11:40:05 +02:00
Juan A. Suarez Romero
c98ddc778a
broadcom/compiler: force a last thrsw for spilling
...
As we don't know if we are going to have spilling or not, emit always a
last thrsw at the end of the shader.
If later we don't have spillings and we don't need that last thrsw, we
remove it and switch back to the previous one.
This way we ensure all the spilling happens always before the last
thrsw.
v2 (Juan):
- Rework the code to force a last thrsw and remove later if no spilling
v3:
- Merge functionality inside vir_emit_last_thrsw (Iago)
- Add vir_restore_last_thrsw (Juan)
v4 (Iago):
- Fix/add new comments
- Rename variables/parameters
v5 (Iago):
- Fix comments
- Add assertion
Cc: mesa-stable
Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4760
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12322 >
2021-09-10 09:18:05 +00:00
Juan A. Suarez Romero
53c8b4c093
broadcom: make vir_emit_last_thrsw() private
...
This function is only used in v3d_nir_to_vir(), so make it private.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12322 >
2021-09-10 09:18:05 +00:00
Ilia Mirkin
fb5deb2b4a
a4xx/computerator: add initial backend
...
This backend provides very basic a4xx support. It's enough to run
kernels with explicit stg/etc ops, but not with stgb/ldgb type access.
There is no perfcounter support hooked up yet either.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12784 >
2021-09-10 01:20:22 +00:00
Ilia Mirkin
269cbc8a4d
a4xx: add some better documentation for compute registers
...
These were driven by seeing 0x1c (and other) values set by blob, as well
as comparing to equivalent a3xx documentation.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12784 >
2021-09-10 01:20:22 +00:00
Sagar Ghuge
5f66e5e56d
anv: No need to lower to A64 messages for 64-bit atomics
...
With LSC support, we can do 64-bit atomics with A32/64 messages.
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Suggested-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Sagar Ghuge
75e28b8777
intel/compiler: Add support to handle 64-bit atomics with A32 messages
...
v1: (Jason)
- Fix parentheses
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Sagar Ghuge
9ffd05b41e
anv: Advertise support for shaderBufferFloat64AtomicMinMax
...
v1:
- Just check has_lsc (Jason)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Sagar Ghuge
527468f56f
intel/compiler: Add 64-bit A64 float logical opcode support
...
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Jason Ekstrand
7f2395046f
anv: Advertise support for shaderBufferFloat32AtomicAdd
...
Rework: (Sagar)
- Enable shaderBufferFloat32AtomicAdd for XeHPG
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Jason Ekstrand
7b21def9c2
intel/fs: Add support for atomic_fadd
...
Rework:
- Enable float32 atomic add with LSC (Sagar)
- disassemble new opcode (Caio)
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566 >
2021-09-09 23:34:33 +00:00
Emma Anholt
db930bd91b
nir_to_tgsi: Allow SSA defs to include swizzles, abs, and neg.
...
This will let some copy prop happen automatically, avoiding MOVs to temps.
Most importantly, though, it means that virgl won't see (unused channel)
swizzles from channels beyond the bounds of sysvals, which trigger shader
compile failures on the host.
softpipe shader-db:
total instructions in shared programs: 2946336 -> 2934777 (-0.39%)
instructions in affected programs: 374676 -> 363117 (-3.09%)
total temps in shared programs: 565552 -> 564139 (-0.25%)
temps in affected programs: 18138 -> 16725 (-7.79%)
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Emma Anholt
bd8de16803
nir_to_tgsi: Switch ssa_temp[] to be a ureg_src.
...
After ntt_store_def(), all uses want it to be a ureg_src. This will let
us fold abs/neg/swizzles in.
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Emma Anholt
ed1fb1f03b
nir_to_tgsi: Clean up some unnecessary pointers-to-uregs.
...
This was used at one point to do ntt_store_def() or something I think.
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Emma Anholt
d24893e735
nir_to_tgsi: Add support for memory_barrier_tcs_patch.
...
glsl_to_tgsi translated both cases of ir_barrier to TGSI's BARRIER, so map
both of glsl_to_nir's ir_barrier outputs to the same.
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Emma Anholt
4a4a889de3
nir_to_tgsi: Don't forget to add sampler views with our samplers.
...
While softpipe and i915 didn't really care, virgl very much does.
tgsi_scan also insisted that the texture ops and the decls matched, which
led to deduplicating the switch statemnts.
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Emma Anholt
947f585e91
nir_to_tgsi: Fix indirect addressing of atomic counters.
...
It's not actually a given that the offset within the counter buffer is a
constant.
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12781 >
2021-09-09 22:02:52 +00:00
Bas Nieuwenhuizen
b05cd10b8e
nir: Avoid visiting instructions multiple times in nir_instr_free_and_dce.
...
Sadly need to poke a bit in the src internals to avoid using yet another
heap allocated datastructure.
Fixes: 5251548572 ("nir: Add a nir_instr_remove that recursively removes dead code.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5323
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12726 >
2021-09-09 21:35:03 +00:00
Chia-I Wu
ca1622830e
venus: separate physical device init and filter
...
It is not an error when a physical device is filtered out. But it is an
error when a physical device fails to initialize.
Fixed
dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail.
v2: separate success and fail paths
Fixes: 7dfac808 ("venus: no supported device is not an error")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org > (v1)
Reviewed-by: Ryan Neph <ryanneph@google.com > (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12723 >
2021-09-09 20:07:18 +00:00
Chia-I Wu
e14bec2ef3
venus: refactor vn_instance_enumerate_physical_devices
...
Move device enumeration to a new function.
v2: separate success and fail paths, rename functions
(suggested by Ryan)
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org > (v1)
Reviewed-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12723 >
2021-09-09 20:07:18 +00:00
Mike Blumenkrantz
7f5a353012
aux/trace: use private refcounts for samplerviews
...
this avoids having the driver bypass the samplerview wrapper and destroying
the samplerview prematurely, e.g., spec@sgis_generate_mipmap@gen-texsubimage
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12546 >
2021-09-09 19:27:35 +00:00
Roland Scheidegger
1a554fd610
lavapipe: implement VK_EXT_depth_clip_enable
...
v2: fix pipeline creation, need a deep copy for rasterization state now
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12260 >
2021-09-09 18:29:26 +00:00
Roland Scheidegger
49337ec410
gallium: add rasterizer depth_clamp enable bit
...
This is required for d3d10+, which has depth_clamp always enabled
regardless of depth_clip (in contrast to OpenGL, where enabling
depth_clamp disables depth_clip). There doesn't seem to be a GL
extension for it, but it will be used for lavapipe to implement
VK_EXT_depth_clip_enable.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12260 >
2021-09-09 18:29:26 +00:00
Mike Blumenkrantz
869f0a4992
mesa: skip fallback draw call if no primitives are being drawn
...
../src/mesa/main/draw.c: In function ‘_mesa_draw_gallium_fallback’:
../src/mesa/main/draw.c:1056:4: warning: ‘prim’ may be used uninitialized [-Wmaybe-uninitialized]
1056 | ctx->Driver.Draw(ctx, prim, num_prims, index_size ? &ib : NULL,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1057 | index_bounds_valid, info->primitive_restart,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1058 | info->restart_index, min_index, max_index,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1059 | info->instance_count, info->start_instance);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12766 >
2021-09-09 16:52:40 +00:00
Juan A. Suarez Romero
b58d6eaf11
mesa: fix default texture buffer format
...
According to ARB_tbo spec, default format is LUMINANCE8, but according
to core spec, it is R8.
This fixes piglit's spec@arb_texture_buffer_object@get test with drivers
supporting ARB_tbo spec but OpenGL/ES < 3.1.
v2:
- Compare against compat profile (Ilia)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12774 >
2021-09-09 15:23:43 +00:00