mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965: Fix assertion in brw_reg_type_letters
While using various debugging features (optimization debug, instruction dumping, etc) this function is called in order to get a readable letter for the type of unit. On GEN8, two new units were added, the Qword and the Unsigned Qword (Q, and UQ respectively). The existing assertion tries to determine that the argument passed in is within the correct boundary, however, it was using UQ as the upper limit instead of Q. To my knowledge you can only hit this case with the branch I am currently working on, so it doesn't fix any known issues. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
37c2687645
commit
3d4d77a5dc
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ brw_reg_type_letters(unsigned type)
|
|||
[BRW_REGISTER_TYPE_UQ] = "UQ",
|
||||
[BRW_REGISTER_TYPE_Q] = "Q",
|
||||
};
|
||||
assert(type <= BRW_REGISTER_TYPE_UQ);
|
||||
assert(type <= BRW_REGISTER_TYPE_Q);
|
||||
return names[type];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue