20-odd more piglits.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
struct si_pipe_sampler_view **resource = (struct si_pipe_sampler_view **)views;
struct si_pm4_state *pm4 = CALLOC_STRUCT(si_pm4_state);
int i, j;
struct si_pipe_sampler_view **resource = (struct si_pipe_sampler_view **)views;
struct si_pm4_state *pm4 = CALLOC_STRUCT(si_pm4_state);
int i, j;
+
+ rctx->have_depth_texture = FALSE;
(struct pipe_sampler_view **)&samplers->views[i],
views[i]);
(struct pipe_sampler_view **)&samplers->views[i],
views[i]);
+ if (resource[i]) {
+ struct r600_resource_texture *rtex =
+ (struct r600_resource_texture *)views[i]->texture;
+ rctx->have_depth_texture |= rtex->depth && !rtex->is_flushing_texture;
si_pm4_add_bo(pm4, resource[i]->resource, RADEON_USAGE_READ);
si_pm4_add_bo(pm4, resource[i]->resource, RADEON_USAGE_READ);
for (j = 0; j < Elements(resource[i]->state); ++j) {
si_pm4_sh_data_add(pm4, resource[i] ? resource[i]->state[j] : 0);
for (j = 0; j < Elements(resource[i]->state); ++j) {
si_pm4_sh_data_add(pm4, resource[i] ? resource[i]->state[j] : 0);
si_pm4_sh_data_end(pm4, user_data_reg, SI_SGPR_RESOURCE);
out:
si_pm4_sh_data_end(pm4, user_data_reg, SI_SGPR_RESOURCE);
out:
- rctx->have_depth_texture = has_depth;
rctx->ps_samplers.n_views = count;
return pm4;
}
rctx->ps_samplers.n_views = count;
return pm4;
}