diff options
author | Jason Ekstrand <[email protected]> | 2017-09-28 19:03:38 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-10-12 22:39:29 -0700 |
commit | 6ee4b352c90e93c82d900328716c1068a7188b91 (patch) | |
tree | 2dc67b1a6a2d11b789c965a0809ef0131c34f5b9 /src/mesa/drivers/dri/i965/gen7_l3_state.c | |
parent | 2975e4c56a7aeade5a324aa4d446f18cc176fa06 (diff) |
i965: Use prog->info.num_images for needs_dc computation
This should be just as good as looking in prog_data but removes our one
state setup dependency on brw_stage_prog_data::nr_image_param.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_l3_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_l3_state.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_l3_state.c b/src/mesa/drivers/dri/i965/gen7_l3_state.c index a368af36316..0b2d61f9e0f 100644 --- a/src/mesa/drivers/dri/i965/gen7_l3_state.c +++ b/src/mesa/drivers/dri/i965/gen7_l3_state.c @@ -54,8 +54,9 @@ get_pipeline_state_l3_weights(const struct brw_context *brw) const struct brw_stage_prog_data *prog_data = stage_states[i]->prog_data; needs_dc |= (prog && (prog->sh.data->NumAtomicBuffers || - prog->sh.data->NumShaderStorageBlocks)) || - (prog_data && (prog_data->total_scratch || prog_data->nr_image_params)); + prog->sh.data->NumShaderStorageBlocks || + prog->info.num_images)) || + (prog_data && prog_data->total_scratch); needs_slm |= prog_data && prog_data->total_shared; } |