Skip to content

nine: Fix assert in tx_src_param

Thomas Andersen requested to merge phomes/mesa:nine-assert into main

A previous commit cleaned up the asserts but the last part of this assert looks like it got mixed up. It should have allowed param->rel for D3DSPR_INPUT if version is 3.0. Instead it does && on the enum value D3DSPR_ADDR which is of course always true, with the version check. The result is that we miss input validation with version 3.0.

Spotted by a compile warning

Fixes: 5974401a ("st/nine: Regroup param->rel tests")

Merge request reports