瀏覽代碼

etnaviv: Replace bitwise OR with logical OR

The test here is testing whether either variable is non-zero.
While currently the test works fine, it's fragile. Replace it
with logical OR to avoid the fragility.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
master
Marek Vasut 7 年之前
父節點
當前提交
f51ee564f5
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1
    1
      src/gallium/drivers/etnaviv/etnaviv_shader.c

+ 1
- 1
src/gallium/drivers/etnaviv/etnaviv_shader.c 查看文件

@@ -212,7 +212,7 @@ etna_link_shaders(struct etna_context *ctx, struct compiled_shader_state *cs,
cs->ps_inst_mem_size = fs->code_size;
cs->PS_INST_MEM = fs->code;

if (vs->needs_icache | fs->needs_icache) {
if (vs->needs_icache || fs->needs_icache) {
/* If either of the shaders needs ICACHE, we use it for both. It is
* either switched on or off for the entire shader processor.
*/

Loading…
取消
儲存