diff options
author | Chia-I Wu <[email protected]> | 2014-10-04 10:51:20 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-10-04 23:18:51 +0800 |
commit | ca824e69403a32144328d1fb7987d0537e88ee04 (patch) | |
tree | da6d1abfffb4339837f3d8cb1111405100cbe175 /src/gallium/drivers/ilo/ilo_shader.c | |
parent | 0c4bc1e29223ffec4617999c0c03d722bdcc170a (diff) |
ilo: let shaders determine sampler counts
When a shader needs N samplers, we should upload N samplers and not depend on
how many are bound.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index b43fce7ed79..fdbd2b88ea9 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -1000,6 +1000,9 @@ ilo_shader_get_kernel_param(const struct ilo_shader_state *shader, case ILO_KERNEL_OUTPUT_COUNT: val = kernel->out.count; break; + case ILO_KERNEL_SAMPLER_COUNT: + val = shader->info.num_samplers; + break; case ILO_KERNEL_URB_DATA_START_REG: val = kernel->in.start_grf; break; |