OSDN Git Service

broadcom/vc5: Add lowering for txf_ms to a txf on a 2x2-scaled texture.
authorEric Anholt <eric@anholt.net>
Tue, 24 Oct 2017 19:16:50 +0000 (12:16 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:27 +0000 (13:31 -0700)
commite717e3e7cddcf2bd117c0f7889632f741e2d8ab4
tree49a4d789b20a424f2c2bde4c586acf87b183843a
parentb1a8b3979c6f206ee80eaeb5d27fded6c995575e
broadcom/vc5: Add lowering for txf_ms to a txf on a 2x2-scaled texture.

The HW has no native sampler support for multisample textures, but since
we only need to support txf_ms and the layout is UIF, we just need to
scale up the texcoords and then add in the sample.

This drops the old TEXTURE_MSAA_ADDR special uniform, since we're treating
MSAA textures as textures, rather than basically texbos like VC4 had to.
src/broadcom/Makefile.sources
src/broadcom/compiler/meson.build
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/v3d_nir_lower_txf_ms.c [new file with mode: 0644]
src/broadcom/compiler/vir.c
src/gallium/drivers/vc5/vc5_uniforms.c