panfrost/midgard: Refactor opcode tables
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 24 Apr 2019 01:15:15 +0000 (01:15 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 24 Apr 2019 02:22:32 +0000 (02:22 +0000)
commit1f345bc7d62fac1773afef7310174ad209ae986b
tree1a1cf78a340f24448bfcc56ba8a8344273b94793
parent4d995e0da818ee089c02f868b5bb17dbefbd7b4c
panfrost/midgard: Refactor opcode tables

We create an all-encompassing opcode table for handling name and
properties, removing a number of ad hoc opcode tables which became
brittle and quickly out of date. While we're at it, we fix some
incorrect opcodes relating to ball/bany, and move a small function out
to midgard_compile.c. Together these changes should allow compilation
without warnings, along with helping the codebase health considerably.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/disassemble.c
src/gallium/drivers/panfrost/midgard/helpers.h
src/gallium/drivers/panfrost/midgard/midgard.h
src/gallium/drivers/panfrost/midgard/midgard_compile.c