Mesa (main): intel/compiler: Use uppercase enum values in brw_ir_performance.cpp

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 16 09:42:15 UTC 2021


Module: Mesa
Branch: main
Commit: 7325179bcb07b7e6aa9a1469f425e7003b4fa249
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7325179bcb07b7e6aa9a1469f425e7003b4fa249

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Jun  3 18:06:45 2020 -0700

intel/compiler: Use uppercase enum values in brw_ir_performance.cpp

This is by far the more common style in Mesa.  It also gives a cue that
e.g. num_dependency_ids is a fixed definition rather than some kind of
local variable maintaining a count.

While hre, we also rename the enums to have full prefixes to prepare for
a future where we use them in multiple files for future backend work.

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14182>

---

 src/intel/compiler/brw_ir_performance.cpp | 421 +++++++++++++++---------------
 1 file changed, 213 insertions(+), 208 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=7325179bcb07b7e6aa9a1469f425e7003b4fa249


More information about the mesa-commit mailing list