From e0f95ddd3e1217e5710cdd12e733b6440592cc7d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 10 Feb 2017 01:09:27 +0100 Subject: gallium: let state trackers tell u_vbuf whether user VBOs are possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can affect whether u_vbuf will be enabled or not. Reviewed-by: Nicolai Hähnle --- src/gallium/state_trackers/nine/device9.c | 4 ++-- src/gallium/state_trackers/xa/xa_context.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 92bc72ce28d..b9b7a637d70 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -199,9 +199,9 @@ NineDevice9_ctor( struct NineDevice9 *This, This->pipe_sw = This->screen_sw->context_create(This->screen_sw, NULL, 0); if (!This->pipe_sw) { return E_OUTOFMEMORY; } - This->context.cso = cso_create_context(This->context.pipe); + This->context.cso = cso_create_context(This->context.pipe, 0); if (!This->context.cso) { return E_OUTOFMEMORY; } /* also a guess */ - This->cso_sw = cso_create_context(This->pipe_sw); + This->cso_sw = cso_create_context(This->pipe_sw, 0); if (!This->cso_sw) { return E_OUTOFMEMORY; } /* Create first, it messes up our state. */ diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c index 715b48d7c84..1f4717056a9 100644 --- a/src/gallium/state_trackers/xa/xa_context.c +++ b/src/gallium/state_trackers/xa/xa_context.c @@ -57,7 +57,7 @@ xa_context_create(struct xa_tracker *xa) ctx->xa = xa; ctx->pipe = xa->screen->context_create(xa->screen, NULL, 0); - ctx->cso = cso_create_context(ctx->pipe); + ctx->cso = cso_create_context(ctx->pipe, 0); ctx->shaders = xa_shaders_create(ctx); renderer_init_state(ctx); -- cgit v1.2.3