i965/fs: Use a switch statement in fs_inst::regs_read()
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Jun 2015 18:53:08 +0000 (11:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Jun 2015 22:42:47 +0000 (15:42 -0700)
commit3258e1b80d66ec26f14a24a5eae0629a2d23a444
tree35fca5a5198265152a8553b7aa534661596f9bd5
parentaa7d4cecec1a1236d237b83ebf035285f438ee67
i965/fs: Use a switch statement in fs_inst::regs_read()

This makes things a little simpler, more efficient, and quite a bit more
readable.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp