Skip to content

mesa: fix misaligned pointer returned by dlist_alloc

Neha Bhende requested to merge bhenden/mesa:lightsmark-crash into main

In cases where the to-be-allocated node size with padding exceeds BLOCK_SIZE but without padding doesn't, a new block is not created and no padding is done to the previous instruction, causing a misaligned pointer to be returned.

This fixes crash seen with lightsmark and Optuma apitraces

Fixes: 05605d7f (' mesa: remove display list OPCODE_NOP')

Reviewed-by: Neha Bhende bhenden@vmware.com Tested-by: Neha Bhende bhenden@vmware.com (cherry picked from commit 0c814c73b528651d1c39e6c731c38b30f8fc6073)

Merge request reports

Loading