mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965: Handle BRW_OPCODE_DO on Gen6+ in brw_instruction_name().
This became a problem after the recent disassembler changes. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3d21720d31
commit
8bb156a261
1 changed files with 6 additions and 0 deletions
|
|
@ -168,6 +168,12 @@ brw_instruction_name(const struct brw_device_info *devinfo, enum opcode op)
|
||||||
{
|
{
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case BRW_OPCODE_ILLEGAL ... BRW_OPCODE_NOP:
|
case BRW_OPCODE_ILLEGAL ... BRW_OPCODE_NOP:
|
||||||
|
/* The DO instruction doesn't exist on Gen6+, but we use it to mark the
|
||||||
|
* start of a loop in the IR.
|
||||||
|
*/
|
||||||
|
if (devinfo->gen >= 6 && op == BRW_OPCODE_DO)
|
||||||
|
return "do";
|
||||||
|
|
||||||
assert(brw_opcode_desc(devinfo, op)->name);
|
assert(brw_opcode_desc(devinfo, op)->name);
|
||||||
return brw_opcode_desc(devinfo, op)->name;
|
return brw_opcode_desc(devinfo, op)->name;
|
||||||
case FS_OPCODE_FB_WRITE:
|
case FS_OPCODE_FB_WRITE:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue