&ice->state.sampler_table_offset[stage],
&ice->state.sampler_table_resource[stage],
&map);
- if (!unlikely(map))
- return NULL;
+ if (unlikely(!map))
+ return;
ice->state.sampler_table_offset[stage] +=
bo_offset_from_base_address(ice->state.sampler_table_resource[stage]);
gl_shader_stage stage = stage_from_pipe(p_stage);
unsigned i;
- for (i = 0; i < count; i++)
- pipe_sampler_view_reference(&ice->state.textures[stage][i], views[i]);
- for (; i < ice->state.num_textures[stage]; i++)
- pipe_sampler_view_reference(&ice->state.textures[stage][i], NULL);
+ for (i = 0; i < count; i++) {
+ pipe_sampler_view_reference((struct pipe_sampler_view **)
+ &ice->state.textures[stage][i], views[i]);
+ }
+ for (; i < ice->state.num_textures[stage]; i++) {
+ pipe_sampler_view_reference((struct pipe_sampler_view **)
+ &ice->state.textures[stage][i], NULL);
+ }
ice->state.num_textures[stage] = count;
pipe_surface_reference(&cso->zsbuf, state->zsbuf);
- struct isl_depth_stencil_hiz_emit_info info = {
- .mocs = MOCS_WB,
- };
+ //struct isl_depth_stencil_hiz_emit_info info = {
+ //.mocs = MOCS_WB,
+ //};
// XXX: depth buffers
}
}
assert(prog_data->binding_table.texture_start ==
- ice->state.num_textures[stage] ? s : 0xd0d0d0d0);
+ (ice->state.num_textures[stage] ? s : 0xd0d0d0d0));
for (int i = 0; i < ice->state.num_textures[stage]; i++) {
struct iris_sampler_view *view = ice->state.textures[stage][i];
- struct iris_resource *res = (void *) view->pipe.texture;
bt_map[s++] = use_sampler_view(batch, view);
}