intel/compiler: Add assert that set bits are within mask
authorMatt Turner <mattst88@gmail.com>
Fri, 19 Jun 2020 19:32:44 +0000 (12:32 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 01:24:06 +0000 (01:24 +0000)
We generate bitfields of bits that we want to retain (mask) and bits
that we want to set (brw_mode) in the cr0 register, so the bits we want
to set should be in the set of bits we want to retain.

Also, remove the initialization of mask from
fs_visitor::emit_shader_float_controls_execution_mode since
brw_rnd_mode_from_nir initializes the mask parameter unconditionally.

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


No differences found