mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
hk: use zero sink for null index buffer
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
parent
eff6b884cb
commit
f0d680437f
1 changed files with 3 additions and 4 deletions
|
|
@ -3077,12 +3077,11 @@ hk_needs_index_robustness(struct hk_cmd_buffer *cmd, struct agx_draw *draw)
|
|||
gfx->shaders[MESA_SHADER_TESS_EVAL])
|
||||
return false;
|
||||
|
||||
/* Soft fault does not cover the hardware index buffer fetch. So we can't
|
||||
* simply use index buffers. However, we can use our 16-byte zero sink
|
||||
* instead, using the hardware clamp. This does seem to work.
|
||||
/* Soft fault does not cover the hardware index buffer fetch, use the zero
|
||||
* page instead.
|
||||
*/
|
||||
if (draw->index_buffer_range_B == 0) {
|
||||
draw->index_buffer = dev->rodata.zero_sink;
|
||||
draw->index_buffer = AGX_ZERO_PAGE_ADDRESS;
|
||||
draw->index_buffer_range_B = 4;
|
||||
draw->start = 0;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue