search for: nv40_screen

Displaying 12 results from an estimated 12 matches for "nv40_screen".

Did you mean: nv30_screen
2009 Dec 21
1
Clean up of nv40_context->state.hw and nv40_screen->state
Hi, I'm trying to find a place where objects held in nv40_context->state.hw[] and nv40_screen->state[] are being unreferenced during pipe_context destruction. Currently I'm observing that these objects are not unreferenced and since they hold reference to buffer objects, the buffer objects themselves are not unreferenced as well (for example color buffer or z buffer). In order...
2010 Jan 18
2
[PATCH 1/2] nv30-nv40: support unlimited queries
...tch will improve this. --- src/gallium/drivers/nv30/nv30_query.c | 26 ++++++++++++++++++-------- src/gallium/drivers/nv30/nv30_screen.c | 2 ++ src/gallium/drivers/nv30/nv30_screen.h | 1 + src/gallium/drivers/nv40/nv40_query.c | 26 ++++++++++++++++++-------- src/gallium/drivers/nv40/nv40_screen.c | 2 ++ src/gallium/drivers/nv40/nv40_screen.h | 1 + 6 files changed, 42 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/nv30/nv30_query.c b/src/gallium/drivers/nv30/nv30_query.c index e27e9cc..c0d192b 100644 --- a/src/gallium/drivers/nv30/nv30_query.c +++ b/src/gallium/dr...
2010 Jan 18
0
[PATCH] nv30-nv40: support unlimited queries (v2)
...eader for query_list. --- src/gallium/drivers/nv30/nv30_query.c | 26 ++++++++++++++++++-------- src/gallium/drivers/nv30/nv30_screen.c | 2 ++ src/gallium/drivers/nv30/nv30_screen.h | 2 ++ src/gallium/drivers/nv40/nv40_query.c | 26 ++++++++++++++++++-------- src/gallium/drivers/nv40/nv40_screen.c | 2 ++ src/gallium/drivers/nv40/nv40_screen.h | 2 ++ 6 files changed, 44 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/nv30/nv30_query.c b/src/gallium/drivers/nv30/nv30_query.c index e27e9cc..eeab223 100644 --- a/src/gallium/drivers/nv30/nv30_query.c +++ b/src/gallium/d...
2009 Dec 21
2
[PATCH 1/2] Unreference state/buffer objects on context/screen destruction
...; + if (nv50->state.vtxfmt) + so_ref(NULL, &nv50->state.vtxfmt); + if (nv50->state.vtxbuf) + so_ref(NULL, &nv50->state.vtxbuf); + if (nv50->state.vtxattr) + so_ref(NULL, &nv50->state.vtxattr); + draw_destroy(nv50->draw); FREE(nv50); } Index: nv40/nv40_screen.c =================================================================== --- nv40/nv40_screen.c (wersja 32083) +++ nv40/nv40_screen.c (kopia robocza) @@ -140,7 +140,13 @@ nv40_screen_destroy(struct pipe_screen *pscreen) { struct nv40_screen *screen = nv40_screen(pscreen); + unsigned i; +...
2010 Jan 18
1
[PATCH 1/2] nv30-nv40: Rewrite primitive splitting and emission
...>end = start + count; + prim->mode = mode; + prim->flags = 0; + prim->startv = startv; + prim->chunk = -1; + prim->vpp = vpp; + + nv40_state_emit(nv40); +} + +#define START_INDEX 0x80000000 + +static inline void +nv40_primitive_start_vertex(struct nv40_primitive* prim) +{ + struct nv40_screen *screen = prim->nv40->screen; + struct nouveau_channel *chan = screen->base.channel; + struct nouveau_grobj *curie = screen->curie; + + if(prim->startv & START_INDEX) + { + BEGIN_RING(chan, curie, NV40TCL_VB_INDEX_BATCH, 1); + OUT_RING (chan, (prim->startv & ~START_INDE...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code
...| 20 ++-- src/gallium/drivers/nv30/nv30_transfer.c | 178 --------------------- src/gallium/drivers/nv40/Makefile | 2 - src/gallium/drivers/nv40/nv40_fragtex.c | 12 +- src/gallium/drivers/nv40/nv40_miptree.c | 235 --------------------------- src/gallium/drivers/nv40/nv40_screen.c | 13 +-- src/gallium/drivers/nv40/nv40_state.h | 13 -- src/gallium/drivers/nv40/nv40_state_fb.c | 10 +- src/gallium/drivers/nv40/nv40_transfer.c | 178 --------------------- 36 files changed, 215 insertions(+), 1815 deletions(-) delete mode 100644 src/gallium/drivers/nv10/...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code (v2)
....c | 178 --------------------- src/gallium/drivers/nv40/Makefile | 2 - src/gallium/drivers/nv40/nv40_context.h | 2 +- src/gallium/drivers/nv40/nv40_fragtex.c | 12 +- src/gallium/drivers/nv40/nv40_miptree.c | 235 --------------------------- src/gallium/drivers/nv40/nv40_screen.c | 13 +-- src/gallium/drivers/nv40/nv40_state.h | 13 -- src/gallium/drivers/nv40/nv40_state_fb.c | 10 +- src/gallium/drivers/nv40/nv40_transfer.c | 178 --------------------- 42 files changed, 229 insertions(+), 1824 deletions(-) delete mode 100644 src/gallium/drivers/nv10/...
2009 Dec 30
4
[PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and some associated corruption as well. Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- src/gallium/drivers/nouveau/nouveau_screen.c | 21 +++++++++++++++++++++ src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ src/gallium/drivers/nouveau/nouveau_stateobj.h | 13 +++++++++++++
2009 Dec 05
1
[PATCH] nouveau: avoid running out of relocs (attempt 4)
...ba0fbcb 100644 --- a/src/gallium/drivers/nv40/nv40_state_emit.c +++ b/src/gallium/drivers/nv40/nv40_state_emit.c @@ -57,7 +57,7 @@ nv40_state_emit(struct nv40_context *nv40) struct nouveau_channel *chan = nv40->screen->base.channel; struct nv40_state *state = &nv40->state; struct nv40_screen *screen = nv40->screen; - unsigned i, samplers; + unsigned i; uint64_t states; if (nv40->pctx_id != screen->cur_pctx) { @@ -87,6 +87,14 @@ nv40_state_emit(struct nv40_context *nv40) } state->dirty = 0; +} + +void +nv40_state_flush_notify(struct nouveau_channel *chan) +{ + st...
2009 Dec 05
0
[PATCH] nouveau: avoid running out of relocs (attempt 3)
...diff --git a/src/gallium/drivers/nv40/nv40_state_emit.c b/src/gallium/drivers/nv40/nv40_state_emit.c index 1986929..45a0ea1 100644 --- a/src/gallium/drivers/nv40/nv40_state_emit.c +++ b/src/gallium/drivers/nv40/nv40_state_emit.c @@ -59,6 +59,7 @@ nv40_state_emit(struct nv40_context *nv40) struct nv40_screen *screen = nv40->screen; unsigned i, samplers; uint64_t states; + int push = 0, reloc = 0; if (nv40->pctx_id != screen->cur_pctx) { for (i = 0; i < NV40_STATE_MAX; i++) { @@ -69,6 +70,35 @@ nv40_state_emit(struct nv40_context *nv40) screen->cur_pctx = nv40->pctx_id;...
2010 Feb 02
2
[RFC] Merge of a reincarnation of the nouveau classic mesa driver.
...79 -- src/gallium/drivers/nv20/nv20_vertprog.c | 841 -------------------- src/gallium/drivers/nv30/nv30_miptree.c | 2 +- src/gallium/drivers/nv30/nv30_screen.h | 2 +- src/gallium/drivers/nv40/nv40_miptree.c | 2 +- src/gallium/drivers/nv40/nv40_screen.h | 2 +- src/gallium/winsys/drm/nouveau/dri/Makefile | 3 - .../winsys/drm/nouveau/drm/nouveau_drm_api.c | 18 - src/gallium/winsys/drm/nouveau/egl/Makefile | 3 - src/gallium/winsys/drm/nouveau/xorg/Makefile | 3 - src/gallium/winsys/g3dvl/nouve...
2009 Dec 13
3
[PATCH] nouveau: avoid running out of relocs (attempt 5)
...ba0fbcb 100644 --- a/src/gallium/drivers/nv40/nv40_state_emit.c +++ b/src/gallium/drivers/nv40/nv40_state_emit.c @@ -57,7 +57,7 @@ nv40_state_emit(struct nv40_context *nv40) struct nouveau_channel *chan = nv40->screen->base.channel; struct nv40_state *state = &nv40->state; struct nv40_screen *screen = nv40->screen; - unsigned i, samplers; + unsigned i; uint64_t states; if (nv40->pctx_id != screen->cur_pctx) { @@ -87,6 +87,14 @@ nv40_state_emit(struct nv40_context *nv40) } state->dirty = 0; +} + +void +nv40_state_flush_notify(struct nouveau_channel *chan) +{ + st...