mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 12:48:30 +02:00
i965: Put an assertion to check valid varying_to_slot[varying]
Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bc86690f13
commit
969b461c2b
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ gen7_upload_3dstate_so_decl_list(struct brw_context *brw,
|
|||
buffer_mask |= 1 << buffer;
|
||||
|
||||
decl |= buffer << SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT;
|
||||
assert(vue_map->varying_to_slot[varying] >= 0);
|
||||
decl |= vue_map->varying_to_slot[varying] <<
|
||||
SO_DECL_REGISTER_INDEX_SHIFT;
|
||||
decl |= component_mask << SO_DECL_COMPONENT_MASK_SHIFT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue