diff options
author | Marek Olšák <[email protected]> | 2017-02-10 01:09:27 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-14 21:47:51 +0100 |
commit | e0f95ddd3e1217e5710cdd12e733b6440592cc7d (patch) | |
tree | 28356a6fbc3fb384b9465e365a8d52f7dda59c13 /src/gallium/state_trackers | |
parent | 0561b3c75af2e4bb216b686bf62ae9d89c584dc8 (diff) |
gallium: let state trackers tell u_vbuf whether user VBOs are possible
This can affect whether u_vbuf will be enabled or not.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/xa/xa_context.c | 2 |
2 files changed, 3 insertions, 3 deletions
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); |