aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-04-19 12:07:44 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit87aa88079584d77854d0a2ecf03ac295da4851d1 (patch)
tree5785efad61deb6ee14e906934f29a965098aabca /src
parent3fbf7294b1f3c27a3bef3087e12d10fbc92cf1ff (diff)
iris: fixes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 67740718056..971d17ab038 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -870,8 +870,8 @@ iris_bind_sampler_states(struct pipe_context *ctx,
&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]);
@@ -1063,10 +1063,14 @@ iris_set_sampler_views(struct pipe_context *ctx,
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;
@@ -1294,9 +1298,9 @@ iris_set_framebuffer_state(struct pipe_context *ctx,
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
}
@@ -2110,11 +2114,10 @@ iris_upload_render_state(struct iris_context *ice,
}
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);
}