radeonsi: disable aniso filtering for non-mipmap textures on SI-CI
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Apr 2016 19:37:43 +0000 (21:37 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Apr 2016 12:29:48 +0000 (14:29 +0200)
commitb0d4469519bf07c4051af8eb86ab71647fb1eb61
tree496d351d1677460b9df66dd08733948afa4ad23f
parentddd33431c54379ecf0dce71078e34a07be82e2fc
radeonsi: disable aniso filtering for non-mipmap textures on SI-CI

The closed driver does this, but it looks at base_level and last_level
and uses a conditional assignment, which LLVM can't generate on SGPRs.

That led me to invent this solution that abuses the image descriptor.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_state.c