Mike Blumenkrantz
01edc6f174
zink: always unset var->data.explicit_xfb_buffer
...
ensure that this isn't accidentally triggering for non-xfb shaders
Fixes: 6d40db84c9
("zink: handle direct xfb output from output variables")
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784 >
(cherry picked from commit 53004e57d6
)
2022-09-27 10:03:31 -07:00
Mike Blumenkrantz
cf2be66218
zink: free vertex_state_cache on shutdown
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784 >
(cherry picked from commit 903aba413d
)
2022-09-27 10:03:31 -07:00
Mike Blumenkrantz
380ffeb205
lavapipe: propagate shader access info across libraries
...
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827 >
(cherry picked from commit 6db172436a
)
2022-09-27 10:03:30 -07:00
Mike Blumenkrantz
23cab32e26
lavapipe: set writemask for compute shader buffers
...
I don't know how this wasn't being set?
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827 >
(cherry picked from commit 6c935f3f3d
)
2022-09-27 10:03:29 -07:00
Dylan Baker
3c44bd1166
.pick_status.json: Update to c268ae9efe
2022-09-27 10:03:17 -07:00
Dave Airlie
73e50fdb0f
llvmpipe: bind sampler views/images properly.
...
There is some code that relies on TGSI here, and it has limits.
For now always just bind resources > 31.
Fixes
dEQP-VK.pipeline.pipeline_library.descriptor_limits*
Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18812 >
(cherry picked from commit 16fd0c11c6
)
2022-09-26 15:10:24 -07:00
Dave Airlie
1cfa6ef606
llvmpipe: memset empty images in the key
...
This fixes a bunch of valgrind warnings in
dEQP-VK.pipeline.pipeline_library.descriptor_limits.fragment_shader.storage_images_63
Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18812 >
(cherry picked from commit b144d3e6a7
)
2022-09-26 15:10:24 -07:00
Dave Airlie
6635957f5d
lavapipe: handle view mask layer count properly for begin rendering.
...
If the view mask is set the layer count should be taken from it,
not from the layerCount.
Fixes: 8a6160a354
("lavapipe: VK_KHR_dynamic_rendering")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18811 >
(cherry picked from commit fe5636af6e
)
2022-09-26 15:10:23 -07:00
Dave Airlie
8f9fc8e186
lavapipe: take layers into account around render surface creation.
...
This makes the code more consistent with handling layers, but also
makes sure a new surface is created when the w/h/layers changes.
Fixes: 8a6160a354
("lavapipe: VK_KHR_dynamic_rendering")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18811 >
(cherry picked from commit 21d39dd1de
)
2022-09-26 15:10:23 -07:00
Timur Kristóf
4295192f35
radv: Use a fallback for marketing name when libdrm doesn't know it.
...
Currently for GPUs which don't have a marketing name in libdrm,
RADV just prints "(null) (RADV ...)", which looks bad.
This commit replaces the "(null)" with "AMD Unknown".
Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18775 >
(cherry picked from commit 25e1c3d5b3
)
2022-09-26 15:10:22 -07:00
Yiwei Zhang
34aa290747
mesa/st: emit string marker based on PIPE_CAP_STRING_MARKER
...
Fixes: 10ac88b72f
("mesa/st: drop emit string marker device table entry.")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18803 >
(cherry picked from commit 37900ee2dd
)
2022-09-26 15:10:21 -07:00
Pierre-Eric Pelloux-Prayer
35ebfa8a63
radeonsi/gfx11: don't set VERTS_PER_SUBGRP to 0
...
It seems slower.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Fixes: 25a66477d0
("radeonsi/gfx11: register changes")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18758 >
(cherry picked from commit 4fdf10fdaf
)
2022-09-26 15:10:18 -07:00
Lionel Landwerlin
a7750abce3
intel/fs: fixup a64 messages
...
And run algebraic when either int64 for float64 are not supported so
those don't end up in the generated code.
Cc: mesa-stable
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit 139e8f4635
)
2022-09-26 15:10:17 -07:00
Lionel Landwerlin
8a3a0210ae
intel/nir/rt: store ray query state in scratch
...
Initially I tried to store ray query state in the RT scratch space but
got the offset wrong. In the end putting this in the scratch surface
makes more sense, especially for non RT stages.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: c78be5da30
("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit 838bbdcf2e
)
2022-09-26 15:10:17 -07:00
Lionel Landwerlin
87f6095557
intel/nir/rt: change scratch check validation
...
It's very unfortunate that we have the RT scratch being conflated with
the usual scratch. In our implementation those are 2 different buffers.
The usual scratch access are done through the scratch surface state
(delivered through thread payload), while RT scratch (which outlives
thread dispatch with shader calls) is its own buffer.
So checking the NIR scratch size makes no sense as we can have normal
scratch accesses completely unrelated to RT scratch accesses.
This change switches the validation by looking at whether the scratch
base pointer intrinsic is being used (which is what we use/abuse to
implement RT scratch).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: c78be5da30
("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit f7fab09a07
)
2022-09-26 15:10:16 -07:00
Lionel Landwerlin
318020df2b
intel/nir/rt: fix ray query proceed level
...
Initially the level is world (top level), then it's whatever level the
potential hit is.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: c78be5da30
("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit 259b1647e6
)
2022-09-26 15:10:16 -07:00
Lionel Landwerlin
a13dc0cd0e
intel/nir/rt: spill/fill the entire ray query data
...
We need the traversal stack to saved/restored along with mem hits.
Total spill/fill is 256bytes.
We can potentially optimize this but we have to be very careful about
what state the query is in.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: c78be5da30
("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit f843bec7de
)
2022-09-26 15:10:15 -07:00
Lionel Landwerlin
6094dba1da
intel/nir/rt: fixup generate hit
...
This function copies the potential hit from its memory location to the
committed hit location. A couple of fields got their bit offset wrong.
Fixes some CTS tests in dEQP-VK.ray_query.*
v2: Copy primitive/instance leaf pointers
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 0465714790
("intel/nir/rt: add more helpers for ray queries")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396 >
(cherry picked from commit a88f725eea
)
2022-09-26 15:10:15 -07:00
Mike Blumenkrantz
7cb53bcf6f
zink: handle culldistance xfb outputs like clipdistance
...
fixes:
spec@ext_transform_feedback@builtin-varyings gl_culldistance
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18724 >
(cherry picked from commit 21ba47c821
)
2022-09-26 15:10:14 -07:00
Caio Oliveira
d600acf6d9
nir/lower_task_shader: Don't fail adding a launch when last instruction is a jump
...
Fixes: 8aff8d3dd4
("nir: Add common task shader lowering to make the backend's job easier.")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18442 >
(cherry picked from commit 3f4343c7cd
)
2022-09-26 15:10:14 -07:00
Lionel Landwerlin
6cf16955f7
anv: add missing wokraround for texture cache invalidate
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18743 >
(cherry picked from commit f9dbb65e7f
)
2022-09-26 15:10:13 -07:00
Connor Abbott
90001a78d1
ir3/analyze_ubo_ranges: Account for reserved consts
...
We weren't accounting for the reserved consts when calculating how much
we can upload. This led to assertion failures later if we pushed too
much.
Fixes: d3b7681df2
("tu: ir3: Emit push constants directly")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18757 >
(cherry picked from commit 8cb1deded6
)
2022-09-26 15:10:13 -07:00
Connor Abbott
7b1f40a3db
tu: Fix maxPerStageDescriptorUpdateAfterBindInputAttachments
...
We need this to be the same as maxPerStageDescriptorInputAttachments.
Fixes: d9fcf5de55
("turnip: Enable nonuniform descriptor indexing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18757 >
(cherry picked from commit f483419c23
)
2022-09-26 13:11:27 -07:00
Emma Anholt
c08e78aba9
turnip: Fix busy-waiting on syncobjs with OS_TIMEOUT_INFINITE.
...
I noticed that glmark2's glFinish()es in its offscreen rendering tests
under zink were spinning. When we passed -1 as the timeout for
drmSyncobjWait(), the kernel would immediately return ETIME.
Fixes: 0a82a26a18
("turnip: Porting to common implementation for timeline semaphore")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18739 >
(cherry picked from commit 5e39b52e6a
)
2022-09-26 13:11:25 -07:00
Tapani Pälli
dba8e3f3f5
mesa/st: fix a set_sampler_views call parameter order
...
Fixes: e7b9561959
("gallium: implement compute pbo download")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18745 >
(cherry picked from commit d68e74955c
)
2022-09-26 13:11:22 -07:00
Erik Faye-Lund
f94eeaeb93
mesa/st: always use normalized coords for samplers
...
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: e7b9561959
("gallium: implement compute pbo download")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708 >
(cherry picked from commit 37733c100d
)
2022-09-26 13:11:22 -07:00
Erik Faye-Lund
33ccf9ff92
mesa/st: always use normalized coords for samplers
...
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: 41e093fc98
("st/pbo: add a fast pbo download code-path")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708 >
(cherry picked from commit 1a135bdd6c
)
2022-09-26 13:11:21 -07:00
Erik Faye-Lund
eaf643f247
mesa/st: always use normalized coords for samplers
...
Normalized samplers is the norm, and non-normalized samplers might cause
some drivers and hardware to have to bend over backwards a bit.
We're using TXF here anyway, so it doesn't really matter what we set
this state to. So let's always use normalized samplers instead of
always using non-normalized samplers. That makes things easier for
everyone.
Fixes: ed0e9862c5
("st/mesa: implement PBO downloads for ReadPixels")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708 >
(cherry picked from commit 484205b7eb
)
2022-09-26 13:11:21 -07:00
Jason Ekstrand
c0e6fe20f9
iris: Handle resource offsets in buffer copies
...
Fixes: c5b22441f1
("iris: Fix buffer -> buffer copy_region")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811 >
(cherry picked from commit ea185aef03
)
2022-09-26 13:11:20 -07:00
Jason Ekstrand
0320c2b137
iris: Fix more BO alignments
...
Fixes: 32c5d6d1dc
("iris: Add an alignment parameter to iris_bo_alloc()")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811 >
(cherry picked from commit f4c05f319e
)
2022-09-26 13:11:19 -07:00
Jason Ekstrand
2baf3ce62c
iris: Use a larger alignment for buffer allocations
...
This is likely required for OpenGL buffer texture allocations. It'll
also make buffer copies faster if things are generally nicely aligned.
It's definitely required for OpenCL.
Fixes: 32c5d6d1dc
("iris: Add an alignment parameter to iris_bo_alloc()")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15811 >
(cherry picked from commit 2984134395
)
2022-09-26 13:11:19 -07:00
Jonathan Gray
a52f662a1c
iris: check i915 features after hw gen
...
when running recent Mesa on i855 (gen 2) without amber drivers:
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: iris
error: Kernel is too old for Iris. Consider upgrading to kernel v4.16.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: iris
move the i915 feature check to after the hardware generation check
which results in:
MESA: warning: Driver does not support the 0x3582 PCI ID.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: iris
MESA: warning: Driver does not support the 0x3582 PCI ID.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: iris
Cc: mesa-stable
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18563 >
(cherry picked from commit ed5d16cec1
)
2022-09-26 13:11:16 -07:00
Samuel Pitoiset
fd2c55b4bd
radv: make sure to initialize wd_switch_on_eop before checking its value
...
This is technically not a bug because it might just trigger
SWITCH_ON_EOI when streamout is used and I think it was fine.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7303
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18700 >
(cherry picked from commit 578e30f3e6
)
2022-09-26 13:11:15 -07:00
Emma Anholt
ee4b192b19
turnip: Fix the "written stencil is unmodified" check.
...
We want to know if anything writes stencil, not if all of them do.
Fixes: b2a60c157e
("turnip: add LRZ early-z support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18691 >
(cherry picked from commit b9f9bfa556
)
2022-09-26 13:11:15 -07:00
Timur Kristóf
ae4bc6fe1e
aco/optimizer_postRA: Fix logical control flow handling.
...
Change reset_block() so it only considers the logical
predecessors for VGPRs. Relevant for some optimizations
across loops.
This commit fixes an assertion failure which was triggered
by Zink in a piglit test.
Fossil DB stats unaffected on Navi 21.
Fixes: 2e56e23420
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488 >
(cherry picked from commit a8dd07518c
)
2022-09-26 13:11:12 -07:00
Timur Kristóf
fd910a096c
aco/optimizer_postRA: Don't assume all operand registers were written by same instr.
...
This assumption is no longer true since the post-RA optimizer
can work across blocks. It is now possible that some control
flow paths overwrite some but not all registers of an operand.
This commit may prevent invalid optimizations and/or assertion
failures (on debug builds).
Fossil DB stats unaffected on Navi 21.
Fixes: 0e4747d3fb
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488 >
(cherry picked from commit 2eab413cf7
)
2022-09-26 13:11:11 -07:00
Timur Kristóf
7c4dd3194a
aco/optimizer_postRA: Mark a register overwritten when predecessors disagree.
...
Affects blocks whose some (but not all) predecessors overwrite a register.
This commit fixes glitches in some games which regressed because of the
improved SCC no-compare optimization.
Fossil DB stats on Navi 21:
Totals from 2816 (2.09% of 134906) affected shaders:
CodeSize: 24224276 -> 24241580 (+0.07%)
Instrs: 4570595 -> 4574921 (+0.09%)
Latency: 53680256 -> 53693655 (+0.02%); split: -0.00%, +0.02%
InvThroughput: 9829289 -> 9830573 (+0.01%)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7257
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7305
Fixes: 2e56e23420
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488 >
(cherry picked from commit 63063dd5ce
)
2022-09-26 13:11:10 -07:00
Daniel Schürmann
b133496b10
aco/optimizer: disallow can_eliminate_and_exec() with s_not
...
Totals from 295 (0.22% of 134913) affected shaders: (GFX10.3)
CodeSize: 1016564 -> 1016896 (+0.03%); split: -0.05%, +0.09%
Instrs: 187659 -> 187724 (+0.03%); split: -0.08%, +0.11%
Latency: 2839516 -> 2839541 (+0.00%); split: -0.01%, +0.01%
Copies: 12301 -> 12305 (+0.03%); split: -0.01%, +0.04%
PreSGPRs: 10266 -> 10268 (+0.02%)
Closes : #7024
Cc: mesa-stable
Tested-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18722 >
(cherry picked from commit 98e3c446d8
)
2022-09-26 13:11:10 -07:00
Marek Olšák
6e4ff8b3a8
radeonsi: don't flush asynchronously for fence_server_signal
...
See the comment.
Fixes: 21b3a234
- mesa: fix SignalSemaphoreEXT behavior
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18223 >
(cherry picked from commit da68678171
)
2022-09-26 13:11:09 -07:00
Lionel Landwerlin
ed090af4dc
anv: clear descriptorsets if AllocateDescriptorSets fails
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7285
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18719 >
(cherry picked from commit 369c12e5be
)
2022-09-26 13:11:09 -07:00
Marcin Ślusarz
c0c5ced0d5
intel/compiler: remove second shading rate lowering for mesh
...
It's already called in brw_postprocess_nir and calling it the second time
actually breaks shading rate.
Initially, when I added this call here in 9acb30c8c4
, I was testing it
on an internal tree, which didn't have brw_nir_lower_shading_rate_output call
in brw_postprocess_nir.
Fixes: 9acb30c8c4
("intel/compiler: implement primitive shading rate for mesh")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18702 >
(cherry picked from commit cfd1e5a91e
)
2022-09-26 13:11:06 -07:00
Mike Blumenkrantz
26c82a7e7e
st/drawpixels: use normalized coords in samplers with lowered rects
...
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18614 >
(cherry picked from commit a96151f645
)
2022-09-26 10:13:54 -07:00
Mike Blumenkrantz
66ab591a07
st/bitmap: use normalized coords in samplers with lowered rects
...
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18614 >
(cherry picked from commit 25c36c5caf
)
2022-09-26 10:13:54 -07:00
Mike Blumenkrantz
aff9edc12f
zink: fix atomic ssbo fadd offsets
...
Fixes: 99a4a9c6ff
("zink: fix atomic ssbo indexing with non-32bit values")
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18684 >
(cherry picked from commit e13e139bcb
)
2022-09-26 10:13:54 -07:00
Mike Blumenkrantz
553e016cff
zink: fix/relax resolve geometry check
...
there's no requirement in the spec that the geometry for resolves must match,
only that the geometry must be positive (i.e., no flipped extents)
this avoids major perf issues for scaled resolves
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18364 >
(cherry picked from commit 513fcb7936
)
2022-09-26 10:13:54 -07:00
Dave Airlie
548b18003a
lavapipe: fix 3d depth stencil image clearing.
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18665 >
(cherry picked from commit 9452e5e03a
)
2022-09-26 10:13:54 -07:00
Mike Blumenkrantz
6393e4b32c
zink: make void clears more robust
...
void clears are intended to be the first clear applied to a surface,
so ensure that these don't clobber any scissored clears
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18627 >
(cherry picked from commit 13a19ad90c
)
2022-09-26 10:13:54 -07:00
Mike Blumenkrantz
95c92bacaf
zink: split up get_clear_data()
...
make the array extension part reusable
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18627 >
(cherry picked from commit d7c64ffcb8
)
2022-09-26 10:13:53 -07:00
Gert Wollny
231bf2950e
r600/sfn: Handle shifts on Cayman
...
Fixes: 00599f6e71
r600/sfn: Schedule shift instruction on R600 in t-slot
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18619 >
(cherry picked from commit 260cddf9ec
)
2022-09-26 10:13:53 -07:00
Mike Blumenkrantz
409f2d2558
zink: fix atomic ssbo indexing with non-32bit values
...
this has to adjust using dest size, not hardcoded as uint32
Fixes: 5a95c6b328
("zink: rewrite atomic ssbo intrinsics as atomic derefs")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18144 >
(cherry picked from commit 99a4a9c6ff
)
2022-09-26 10:13:53 -07:00