radv: prevent accessing NULL pipelines when emitting VBO with ESO

ESO always uses dynamic strides, so this should be zero.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26930>
This commit is contained in:
Samuel Pitoiset
2024-01-10 17:16:46 +01:00
committed by Marge Bot
parent 6728e9dd15
commit 1bc5f15b68

View File

@@ -4880,7 +4880,7 @@ radv_write_vertex_descriptors(const struct radv_cmd_buffer *cmd_buffer, const st
* attrib_offset/stride and decrease the offset by attrib_offset%stride. This is
* only allowed with static strides.
*/
num_records += pipeline->attrib_index_offset[i];
num_records += pipeline ? pipeline->attrib_index_offset[i] : 0;
}
/* GFX10 uses OOB_SELECT_RAW if stride==0, so convert num_records from elements into