diff options
author | Marek Olšák <[email protected]> | 2017-03-14 23:26:30 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | 474468fbf935fcd26704061054ccb4d1629009ed (patch) | |
tree | e7d1e7d4acc96e1fce1b4ce097e567c6230fec51 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 8ea3da07061d76f5bca089dbd7c39932b94b5f61 (diff) |
radeonsi/gfx9: disable features that don't work
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index d4f3736533a..580781bd4cb 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -4590,8 +4590,9 @@ static void tex_fetch_args( * The sample index should be adjusted as follows: * sample_index = (fmask >> (sample_index * 4)) & 0xF; */ - if (target == TGSI_TEXTURE_2D_MSAA || - target == TGSI_TEXTURE_2D_ARRAY_MSAA) { + if (ctx->screen->b.chip_class <= VI && /* TODO: fix FMASK on GFX9 */ + (target == TGSI_TEXTURE_2D_MSAA || + target == TGSI_TEXTURE_2D_ARRAY_MSAA)) { struct lp_build_context *uint_bld = &bld_base->uint_bld; struct lp_build_emit_data txf_emit_data = *emit_data; LLVMValueRef txf_address[4]; |