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>
This commit is contained in:
parent
6e75f2172b
commit
f51ee564f5
|
@ -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…
Reference in New Issue