Skip to content

Commit

Permalink
TEST to disable sw rasterizer
Browse files Browse the repository at this point in the history
  • Loading branch information
axeldavy committed Mar 27, 2021
1 parent a2823be commit 0a7e69e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/gallium/frontends/nine/device9.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ NineDevice9_ctor( struct NineDevice9 *This,
This->context.pipe = This->screen->context_create(This->screen, NULL, 0);
This->pipe_secondary = This->screen->context_create(This->screen, NULL, 0);
if (!This->context.pipe || !This->pipe_secondary) { return E_OUTOFMEMORY; } /* guess */
if (!This->screen_sw)
This->screen_sw = This->screen;
This->pipe_sw = This->screen_sw->context_create(This->screen_sw, NULL, 0);
if (!This->pipe_sw) { return E_OUTOFMEMORY; }

Expand Down
4 changes: 2 additions & 2 deletions src/gallium/targets/d3dadapter9/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ drm_create_adapter( int fd,
driDestroyOptionInfo(&defaultInitOptions);

/* wrap it to create a software screen that can share resources */
if (pipe_loader_sw_probe_wrapped(&ctx->swdev, ctx->base.hal))
ctx->base.ref = pipe_loader_create_screen(ctx->swdev);
//if (pipe_loader_sw_probe_wrapped(&ctx->swdev, ctx->base.hal))
// ctx->base.ref = pipe_loader_create_screen(ctx->swdev);

if (!ctx->base.ref) {
ERR("Couldn't wrap drm screen to swrast screen. Software devices "
Expand Down

0 comments on commit 0a7e69e

Please sign in to comment.