ilo: pipe_texture::usage is not a bitfield

It happens to work because PIPE_USAGE_STAGING is 0x100.
This commit is contained in:
Chia-I Wu 2014-02-20 16:59:24 +08:00
parent f8d19a58dc
commit e7307fe708
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {