mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
intel/brw: Fix implementaiton of |= operator for enum
The current implementation does nothing, since it has no side effects,
only a return value. By passing `x` as a reference we can mutate the
value before returning.
Fixes: df37c7ca74 ("brw: fix analysis dirtying with pulled constants")
CID: 1665293
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37263>
This commit is contained in:
parent
70ebc14de9
commit
f18aca8689
1 changed files with 2 additions and 3 deletions
|
|
@ -83,10 +83,9 @@ operator|(brw_analysis_dependency_class x, brw_analysis_dependency_class y)
|
|||
}
|
||||
|
||||
inline brw_analysis_dependency_class
|
||||
operator|=(brw_analysis_dependency_class x, brw_analysis_dependency_class y)
|
||||
operator|=(brw_analysis_dependency_class &x, brw_analysis_dependency_class y)
|
||||
{
|
||||
return static_cast<brw_analysis_dependency_class>(
|
||||
static_cast<unsigned>(x) | static_cast<unsigned>(y));
|
||||
return x = x | y;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue