intel/compiler: Don't emit no-op cr0 changes
authorMatt Turner <mattst88@gmail.com>
Fri, 19 Jun 2020 19:33:31 +0000 (12:33 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 01:24:06 +0000 (01:24 +0000)
commit8da810a7fbc6c8338a395228955ce0be2823d0cb
treeeda97653968cfb4d40dc12fe6e641a013046b99a
parentfe14dc98bfe7ac9bf7a5d2adf7d2619147863ba4
intel/compiler: Don't emit no-op cr0 changes

If mask is 0, we're asking for no changes to cr0.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5566>
src/intel/compiler/brw_fs_visitor.cpp