提交 030daa0f 编写于 作者: D Dan Carpenter 提交者: Mika Kuoppala

drm/i915/mocs: || vs | typo in get_mocs_settings()

It seems pretty clear that bitwise OR was intended here and not logical
OR.

Fixes: 6fc29133 ('drm/i915/gen9: Add WaDisableSkipCaching')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
上级 2ce0004c
...@@ -162,7 +162,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv, ...@@ -162,7 +162,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv,
for (i = 0; i < table->size; i++) for (i = 0; i < table->size; i++)
if (WARN_ON(table->table[i].l3cc_value & if (WARN_ON(table->table[i].l3cc_value &
(L3_ESC(1) || L3_SCC(0x7)))) (L3_ESC(1) | L3_SCC(0x7))))
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册