diff options
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c')
-rw-r--r-- | lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c b/lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c index bc55f877c..d87a14e80 100644 --- a/lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c +++ b/lib/mesa/src/gallium/state_trackers/xa/xa_renderer.c @@ -121,7 +121,8 @@ renderer_init_state(struct xa_context *r) memset(&raster, 0, sizeof(struct pipe_rasterizer_state)); raster.half_pixel_center = 1; raster.bottom_edge_rule = 1; - raster.depth_clip = 1; + raster.depth_clip_near = 1; + raster.depth_clip_far = 1; raster.scissor = 1; cso_set_rasterizer(r->cso, &raster); @@ -393,9 +394,10 @@ renderer_set_constants(struct xa_context *r, &r->fs_const_buffer; pipe_resource_reference(cbuf, NULL); - *cbuf = pipe_buffer_create(r->pipe->screen, - PIPE_BIND_CONSTANT_BUFFER, PIPE_USAGE_DEFAULT, - param_bytes); + *cbuf = pipe_buffer_create_const0(r->pipe->screen, + PIPE_BIND_CONSTANT_BUFFER, + PIPE_USAGE_DEFAULT, + param_bytes); if (*cbuf) { pipe_buffer_write(r->pipe, *cbuf, 0, param_bytes, params); @@ -416,7 +418,7 @@ renderer_copy_prepare(struct xa_context *r, uint32_t fs_traits = FS_COMPOSITE; assert(screen->is_format_supported(screen, dst_surface->format, - PIPE_TEXTURE_2D, 0, + PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_RENDER_TARGET)); (void)screen; |