ilo: pipe_texture::usage is not a bitfield
It happens to work because PIPE_USAGE_STAGING is 0x100.
This commit is contained in:
parent
f8d19a58dc
commit
e7307fe708
|
@ -608,7 +608,7 @@ tex_layout_init_hiz(struct tex_layout *layout)
|
|||
layout->hiz = true;
|
||||
|
||||
/* no point in having HiZ */
|
||||
if (templ->usage & PIPE_USAGE_STAGING)
|
||||
if (templ->usage == PIPE_USAGE_STAGING)
|
||||
layout->hiz = false;
|
||||
|
||||
if (layout->dev->gen == ILO_GEN(6)) {
|
||||
|
|
Loading…
Reference in New Issue