Skip to content

zink: Fix incorrect assert checking for linear state format

Came across this while running NineTest with a debug build, nine+zink+turnip. In my case pres->format == PIPE_FORMAT_L8_UNORM and state->format == PIPE_FORMAT_L8_SRGB.

With pres->format == PIPE_FORMAT_L8_UNORM and state->format == PIPE_FORMAT_L8_SRGB the assert is triggered. We should be comparing the linear version of state->format since we're only concerned about the physical memory layout here.

Edited by Karmjit Mahil

Merge request reports

Loading