search for: debug_get_bool_option

Displaying 16 results from an estimated 16 matches for "debug_get_bool_option".

2009 Dec 31
1
[PATCH] Print NOUVEAU_NO_SWIZZLE and NOUVEAU_NO_TRANSFER messages only once
Currently we are continuously spewing messages messages about these variables since we call debug_get_bool_option everytime we want to check their value This is annoying, slows things down due to terminal rerendering and obscures useful messages. This patch only calls debug_get_bool_option once and caches the result in a static variable. --- src/gallium/drivers/nv04/nv04_transfer.c | 6 ++++-- src/gallium/...
2013 Jul 29
2
[PATCH 1/2] nv30: hook up PMPEG support via nouveau_video, enables XvMC to work
It seems as though at least the NV44 expects the same format as VP2 does. But NV96 expects the format as currently done. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- src/gallium/drivers/nouveau/nouveau_video.c | 43 +++++++++++++++++++++++++---- src/gallium/drivers/nouveau/nouveau_video.h | 2 ++ src/gallium/drivers/nv30/nv30_context.c | 2 ++
2013 Aug 10
3
[PATCH 1/4] nouveau: fix number of surfaces in video buffer, use defines
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- The pipe_surface miscount caused issues for my (failed) attempt at getting vdpau to work with pmpeg. src/gallium/drivers/nouveau/nouveau_video.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_video.h b/src/gallium/drivers/nouveau/nouveau_video.h index 1d6ced0..be53758
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code
...nv04_miptree_layout(struct nv04_miptree *mt) { - struct pipe_texture *pt = &nv04mt->base; + struct pipe_texture *pt = &mt->base; uint offset = 0; - int nr_faces, l; - - nr_faces = 1; + unsigned uniform_pitch = 0; + static int no_swizzle = -1; + if(no_swizzle < 0) + no_swizzle = debug_get_bool_option("NOUVEAU_NO_SWIZZLE", FALSE); + + /* Non-uniform pitch textures must be POT */ + if (pt->width0 & (pt->width0 - 1) || + pt->height0 & (pt->height0 - 1) || + pt->depth0 & (pt->depth0 - 1) + ) + uniform_pitch = 1; + + /* All texture formats except...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code (v2)
...nv04_miptree_layout(struct nv04_miptree *mt) { - struct pipe_texture *pt = &nv04mt->base; + struct pipe_texture *pt = &mt->base; uint offset = 0; - int nr_faces, l; - - nr_faces = 1; + unsigned uniform_pitch = 0; + static int no_swizzle = -1; + if(no_swizzle < 0) + no_swizzle = debug_get_bool_option("NOUVEAU_NO_SWIZZLE", FALSE); + + /* Non-uniform pitch textures must be POT */ + if (pt->width0 & (pt->width0 - 1) || + pt->height0 & (pt->height0 - 1) || + pt->depth0 & (pt->depth0 - 1) + ) + uniform_pitch = 1; + + /* All texture formats except...
2015 Dec 28
0
[PATCH] Revert "nouveau: enable use of new kernel interfaces"
...ys.c b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c index c44424f..fa04c25 100644 --- a/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c +++ b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c @@ -97,6 +97,8 @@ nouveau_drm_screen_create(int fd) if (ret) goto err; + drm->nvif = debug_get_bool_option("NOUVEAU_NVIF", false); + ret = nouveau_device_new(&drm->client, NV_DEVICE, &(struct nv_device_v0) { .device = ~0ULL, diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c index 6f61f66..1a74ae2 100644 --- a/src...
2009 Dec 30
0
Add NOUVEAU_VTXIDX_IN_VRAM variable to put vertex/index buffers in VRAM
...n->base, NOUVEAU_CAP_HW_IDXBUF)) + { + int vram_hack_default = 0; + int vram_hack; + // TODO: add other cards that may need this hack. + // It may also depend on the specific card, CPU or AGP/PCIe chipset. + if(screen->device->chipset == 0x49) + vram_hack_default = 1; + vram_hack = debug_get_bool_option("NOUVEAU_VTXIDX_IN_VRAM", vram_hack_default); + + if(!vram_hack) + { + printf( + "Some systems may experience graphics corruption due to randomly misplaced vertices.\n" + "If this is happening, export NOUVEAU_VTXIDX_IN_VRAM=1 may reduce or eliminate the problem\n&...
2016 Feb 15
2
[PATCH 23/23] nvc0: implement support for maxwell texture headers
...xc->offset); > PUSH_DATA (push, NVC0_TIC_MAX_ENTRIES - 1); > + if (screen->eng3d->oclass >= GM107_3D_CLASS) { > + screen->tic.maxwell = true; > + if (screen->eng3d->oclass == GM107_3D_CLASS) { > + screen->tic.maxwell = > + debug_get_bool_option("NOUVEAU_MAXWELL_TIC", true); > + IMMED_NVC0(push, SUBC_3D(0x0f10), screen->tic.maxwell); > + } > + } > > BEGIN_NVC0(push, NVC0_3D(TSC_ADDRESS_HIGH), 3); > PUSH_DATAh(push, screen->txc->offset + 65536); > diff --git a/src/gallium/driver...
2016 Feb 15
0
[PATCH 23/23] nvc0: implement support for maxwell texture headers
...PUSH_DATA (push, screen->txc->offset); PUSH_DATA (push, NVC0_TIC_MAX_ENTRIES - 1); + if (screen->eng3d->oclass >= GM107_3D_CLASS) { + screen->tic.maxwell = true; + if (screen->eng3d->oclass == GM107_3D_CLASS) { + screen->tic.maxwell = + debug_get_bool_option("NOUVEAU_MAXWELL_TIC", true); + IMMED_NVC0(push, SUBC_3D(0x0f10), screen->tic.maxwell); + } + } BEGIN_NVC0(push, NVC0_3D(TSC_ADDRESS_HIGH), 3); PUSH_DATAh(push, screen->txc->offset + 65536); diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h b/sr...
2016 Feb 15
0
[PATCH 23/23] nvc0: implement support for maxwell texture headers
...PUSH_DATA (push, NVC0_TIC_MAX_ENTRIES - 1); >> + if (screen->eng3d->oclass >= GM107_3D_CLASS) { >> + screen->tic.maxwell = true; >> + if (screen->eng3d->oclass == GM107_3D_CLASS) { >> + screen->tic.maxwell = >> + debug_get_bool_option("NOUVEAU_MAXWELL_TIC", true); >> + IMMED_NVC0(push, SUBC_3D(0x0f10), screen->tic.maxwell); >> + } >> + } >> >> BEGIN_NVC0(push, NVC0_3D(TSC_ADDRESS_HIGH), 3); >> PUSH_DATAh(push, screen->txc->offset + 65536); >> dif...
2014 Jun 17
0
[PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...nv30_context_destroy(pipe); - return NULL; - } + if (ret) + goto err; /*XXX: make configurable with performance vs quality, these defaults * match the binary driver's defaults @@ -233,6 +287,14 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv) if (debug_get_bool_option("NV30_SWTNL", FALSE)) nv30->draw_flags |= NV30_NEW_SWTNL; + nouveau_fence_new(&nv30->base.fence, &nv30->base.fence.current, FALSE); + + if (!screen->cur_ctx) { + nv30_screen_init_hwctx(screen, nv30->base.pushbuf); + screen->cur_ctx = nv30;...
2014 Jun 17
2
[PATCH try 2 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 ++++++++++++------------- src/gallium/drivers/nouveau/nouveau_fence.h | 22 +++++-- src/gallium/drivers/nouveau/nouveau_screen.c | 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h | 14 ++--- src/gallium/drivers/nouveau/nv30/nv30_context.c | 4 +-
2014 Feb 21
3
[PATCH 1/4] nv30: remove use_nv4x, it is identical to is_nv4x
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- Perhaps there was a day when those were different, but that day is not today. src/gallium/drivers/nouveau/nv30/nv30_context.c | 1 - src/gallium/drivers/nouveau/nv30/nv30_context.h | 1 - src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c | 20 ++++++++++---------- src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c | 8 ++++---- 4
2014 Jun 21
3
[Mesa-dev] [PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...turn NULL; > - } > + if (ret) > + goto err; > > /*XXX: make configurable with performance vs quality, these defaults > * match the binary driver's defaults > @@ -233,6 +287,14 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv) > if (debug_get_bool_option("NV30_SWTNL", FALSE)) > nv30->draw_flags |= NV30_NEW_SWTNL; > > + nouveau_fence_new(&nv30->base.fence, &nv30->base.fence.current, FALSE); > + > + if (!screen->cur_ctx) { > + nv30_screen_init_hwctx(screen, nv30->base.pushbuf); > +...
2014 Jun 16
2
[PATCH 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 ++++++++++++------------- src/gallium/drivers/nouveau/nouveau_fence.h | 22 +++++-- src/gallium/drivers/nouveau/nouveau_screen.c | 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h | 14 ++--- src/gallium/drivers/nouveau/nv30/nv30_context.c | 4
2016 Feb 15
24
[PATCH 01/23] nv50: import updated g80_defs.xml.h from rnndb
From: Ben Skeggs <bskeggs at redhat.com> Signed-off-by: Ben Skeggs <bskeggs at redhat.com> --- src/gallium/drivers/nouveau/nv50/g80_defs.xml.h | 279 ++++++++++++++++++++++++ 1 file changed, 279 insertions(+) create mode 100644 src/gallium/drivers/nouveau/nv50/g80_defs.xml.h diff --git a/src/gallium/drivers/nouveau/nv50/g80_defs.xml.h