diff options
author | Chia-I Wu <[email protected]> | 2015-10-16 22:53:05 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-10-18 21:35:16 +0800 |
commit | 86ccb2a16f6d21be29cd99d38831eab6079ce107 (patch) | |
tree | 7f55e57df231234befe8cc4a22eea1fcd6e2de37 /src/gallium/drivers/ilo | |
parent | d04126a773f8a70ff6ae549751dc674133ea26b0 (diff) |
ilo: set VME for 3DSTATE_PS
When the bit is not set, we can see sampling artifacts on triangle edges when
the mip filter is not GEN6_MIPFILTER_NONE.
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r-- | src/gallium/drivers/ilo/core/ilo_state_shader_ps.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/core/ilo_state_shader_ps.c b/src/gallium/drivers/ilo/core/ilo_state_shader_ps.c index f4d801e9b56..ceeb68a460e 100644 --- a/src/gallium/drivers/ilo/core/ilo_state_shader_ps.c +++ b/src/gallium/drivers/ilo/core/ilo_state_shader_ps.c @@ -592,7 +592,12 @@ ps_set_gen8_3DSTATE_PS(struct ilo_state_ps *ps, ILO_DEV_ASSERT(dev, 8, 8); - dw3 = ff->sampler_count << GEN6_THREADDISP_SAMPLER_COUNT__SHIFT | + /* + * Set VME here for correct computation of LODs and others. Not sure why + * it is needed now. + */ + dw3 = GEN6_THREADDISP_VME | + ff->sampler_count << GEN6_THREADDISP_SAMPLER_COUNT__SHIFT | ff->surface_count << GEN6_THREADDISP_BINDING_TABLE_SIZE__SHIFT; if (false) |