mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
libagx: drop silliness in restart kernel
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
parent
4660911cf9
commit
75d3c51e51
1 changed files with 5 additions and 5 deletions
|
|
@ -347,15 +347,11 @@ libagx_unroll_restart(constant struct agx_restart_unroll_params *p,
|
|||
|
||||
uint count = in_draw[0];
|
||||
|
||||
local uintptr_t out_ptr, in_ptr;
|
||||
local uintptr_t out_ptr;
|
||||
if (tid == 0) {
|
||||
out_ptr = (uintptr_t)setup_unroll_for_draw(p, in_draw, draw, mode,
|
||||
p->index_size_B);
|
||||
|
||||
/* Accessed thru local mem because NIR deref is too aggressive */
|
||||
in_ptr = (uintptr_t)(libagx_index_buffer(
|
||||
p->index_buffer, p->index_buffer_size_el, in_draw[2], p->index_size_B,
|
||||
p->zero_sink));
|
||||
}
|
||||
|
||||
barrier(CLK_LOCAL_MEM_FENCE);
|
||||
|
|
@ -363,6 +359,10 @@ libagx_unroll_restart(constant struct agx_restart_unroll_params *p,
|
|||
global uint16_t *out_16 = (global uint16_t *)out_ptr;
|
||||
global uint8_t *out_8 = (global uint8_t *)out_ptr;
|
||||
|
||||
uintptr_t in_ptr = (uintptr_t)(libagx_index_buffer(
|
||||
p->index_buffer, p->index_buffer_size_el, in_draw[2], p->index_size_B,
|
||||
p->zero_sink));
|
||||
|
||||
local uint scratch[32];
|
||||
|
||||
uint out_prims = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue