diff options
author | Rob Clark <[email protected]> | 2015-06-08 14:23:49 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-06-21 08:00:58 -0400 |
commit | 0f008082b184072159e5aedc7fc103efba8740ed (patch) | |
tree | 1c866694c87af6b7d38e67d3fd03480eeb6bca8e /src/gallium/drivers/freedreno/ir3 | |
parent | 457f7c2a2a93b45396ac66e0d4b3896d2db8fdf3 (diff) |
freedreno: remove int sampler shader variants
We get this information from NIR (which gets it from sview decl in tgsi
when translating from tgsi), so no need to maintain shader variants for
this.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 13 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_shader.h | 4 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 4165e2d6aa7..5c215a55a36 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -57,9 +57,6 @@ struct ir3_compile { struct ir3 *ir; struct ir3_shader_variant *so; - /* bitmask of which samplers are integer: */ - uint16_t integer_s; - struct ir3_block *block; /* the current block */ struct ir3_block *in_block; /* block created for shader inputs */ @@ -234,16 +231,6 @@ compile_init(struct ir3_compiler *compiler, ctx->levels_add_one = true; } - switch (so->type) { - case SHADER_FRAGMENT: - case SHADER_COMPUTE: - ctx->integer_s = so->key.finteger_s; - break; - case SHADER_VERTEX: - ctx->integer_s = so->key.vinteger_s; - break; - } - ctx->compiler = compiler; ctx->ir = so->ir; ctx->so = so; diff --git a/src/gallium/drivers/freedreno/ir3/ir3_shader.h b/src/gallium/drivers/freedreno/ir3/ir3_shader.h index 8141c5698db..9f1b0769180 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_shader.h +++ b/src/gallium/drivers/freedreno/ir3/ir3_shader.h @@ -86,10 +86,6 @@ struct ir3_shader_key { * shader: */ uint16_t fsaturate_s, fsaturate_t, fsaturate_r; - - /* bitmask of sampler which produces integer outputs: - */ - uint16_t vinteger_s, finteger_s; }; static inline bool |