diff options
author | Rob Clark <[email protected]> | 2014-05-19 17:56:11 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-05-19 21:17:25 -0400 |
commit | 52381a7ffba908410f7a53855f082401fca7293a (patch) | |
tree | 8ebef95af163f6d3995040bcb93d75d77f008d41 /src/gallium/drivers/freedreno/a3xx/fd3_texture.c | |
parent | 08b9180819de65190dbc1cb3f53d12d429ec3d95 (diff) |
freedreno/a3xx: shadow sampler support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_texture.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c index f9a5b826918..2081775083a 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c @@ -100,6 +100,9 @@ fd3_sampler_state_create(struct pipe_context *pctx, A3XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t)) | A3XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r)); + if (cso->compare_mode) + so->texsamp0 |= A3XX_TEX_SAMP_0_COMPARE_FUNC(cso->compare_func); /* maps 1:1 */ + if (cso->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) { so->texsamp1 = A3XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) | |