search for: nv50_miptree

Displaying 20 results from an estimated 48 matches for "nv50_miptree".

2015 Jan 02
2
[PATCH v2] nv50: enable texture compression
We enable compression only for some supported formats Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> --- src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 23 +++++++++++++++++++++-- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 7 +++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c index 1aacaec..13ed8a3 100644 --- a/src/gal...
2015 Jan 02
2
[PATCH] nv50: enable texture compression
We enable compression only for some supported formats Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> --- src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++-- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c index 1aacaec..a40e6d3 100644 --- a/src/gallium/drivers/no...
2015 Jan 02
1
[PATCH v2] nv50: enable texture compression
....de> wrote: >> We enable compression only for some supported formats >> >> Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu> >> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> >> --- >> src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 23 +++++++++++++++++++++-- >> src/gallium/drivers/nouveau/nv50/nv50_screen.c | 7 +++++++ >> 2 files changed, 28 insertions(+), 2 deletions(-) >> >> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c >&g...
2014 Mar 06
0
[PATCH] nv50, nvc0: adjust blit_3d handling of ms output textures
...or_mask(info); @@ -996,11 +997,14 @@ nv50_blit_3d(struct nv50_context *nv50, const struct pipe_blit_info *info) x_range = (float)info->src.box.width / (float)info->dst.box.width; y_range = (float)info->src.box.height / (float)info->dst.box.height; + x_output = 16384 << nv50_miptree(dst)->ms_x; + y_output = 16384 << nv50_miptree(dst)->ms_y; + x0 = (float)info->src.box.x - x_range * (float)info->dst.box.x; y0 = (float)info->src.box.y - y_range * (float)info->dst.box.y; - x1 = x0 + 16384.0f * x_range; - y1 = y0 + 16384.0f * y_range; + x1...
2012 Oct 04
1
[PATCH] gallium/nouveau: use pre-calculated stride for resource_get_handle
Fixes FDO#55294. --- src/gallium/drivers/nv30/nv30_miptree.c | 3 +-- src/gallium/drivers/nv50/nv50_miptree.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/nv30/nv30_miptree.c b/src/gallium/drivers/nv30/nv30_miptree.c index 5a9a63b..9700fa8 100644 --- a/src/gallium/drivers/nv30/nv30_miptree.c +++ b/src/gallium/drivers/nv30/nv30_miptree.c @@ -56,8 +56,7 @@ nv3...
2014 May 18
0
[PATCH] nv50,nvc0: fix 3d blits with mipmap levels
...rivers/nouveau/nv50/nv50_surface.c index d02f5fe..1f37527 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1142,6 +1142,12 @@ nv50_blit_3d(struct nv50_context *nv50, const struct pipe_blit_info *info) y0 *= (float)(1 << nv50_miptree(src)->ms_y); y1 *= (float)(1 << nv50_miptree(src)->ms_y); + /* XXX: multiply by 6 for cube arrays ? */ + dz = (float)info->src.box.depth / (float)info->dst.box.depth; + z = (float)info->src.box.z; + if (nv50_miptree(src)->layout_3d) + z += 0.5f * dz; +...
2014 Mar 05
1
[PATCH] nv50, nvc0: choose storage type after ms has been initialized
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- Noticed by inspection, untested. Would be interesting to see if this fixes anything. src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++-- src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c index 513d8f9..6c6ef4e 100644 --- a/src/gallium/drivers/nouveau/nv50...
2014 Sep 19
2
[PATCH 0/2] nv50, nvc0: fix weirdo zs formats and their blits
...lit changes. However they seem right... Ilia Mirkin (2): nv50,nvc0: add missing depth/stencil formats to tile flag selection nv50,nvc0: fix 3d blit logic for odd depth/stencil formats src/gallium/drivers/nouveau/nv50/nv50_blit.h | 21 ++++++++++++++------- src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++++ src/gallium/drivers/nouveau/nv50/nv50_surface.c | 4 ++++ src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 4 ++++ 4 files changed, 26 insertions(+), 7 deletions(-) -- 1.8.5.5
2015 Jan 02
0
[PATCH] nv50: enable texture compression
...nnes.klausmann at mni.thm.de> wrote: > We enable compression only for some supported formats > > Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu> > Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> > --- > src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++-- > src/gallium/drivers/nouveau/nv50/nv50_screen.c | 11 +++++++++-- > 2 files changed, 11 insertions(+), 4 deletions(-) > > diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c > index 1aacaec..a40e6d3 100644 >...
2015 Jan 02
0
[PATCH v2] nv50: enable texture compression
...nnes.klausmann at mni.thm.de> wrote: > We enable compression only for some supported formats > > Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu> > Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de> > --- > src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 23 +++++++++++++++++++++-- > src/gallium/drivers/nouveau/nv50/nv50_screen.c | 7 +++++++ > 2 files changed, 28 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/drivers/nouveau/nv50/nv50_miptree.c b/src/gallium/drivers/nouveau/nv50/nv50_miptree.c > index 1aacaec..13ed...
2014 Jan 15
3
[PATCH] nv50, nvc0: don't crash on a null cbuf
...44 --- a/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c @@ -20,9 +20,17 @@ nv50_validate_fb(struct nv50_context *nv50) PUSH_DATA (push, fb->height << 16); for (i = 0; i < fb->nr_cbufs; ++i) { - struct nv50_miptree *mt = nv50_miptree(fb->cbufs[i]->texture); - struct nv50_surface *sf = nv50_surface(fb->cbufs[i]); - struct nouveau_bo *bo = mt->base.bo; + struct nv50_miptree *mt; + struct nv50_surface *sf; + struct nouveau_bo *bo; + + /* Do we need to clear the old RT se...
2014 Jan 23
2
[PATCH v2] nv50, nvc0: clear out RT on a null cbuf
..._DATA (push, 0); > +} > > static void > nv50_validate_fb(struct nv50_context *nv50) > @@ -20,9 +33,18 @@ nv50_validate_fb(struct nv50_context *nv50) > PUSH_DATA (push, fb->height << 16); > > for (i = 0; i < fb->nr_cbufs; ++i) { > - struct nv50_miptree *mt = nv50_miptree(fb->cbufs[i]->texture); > - struct nv50_surface *sf = nv50_surface(fb->cbufs[i]); > - struct nouveau_bo *bo = mt->base.bo; > + struct nv50_miptree *mt; > + struct nv50_surface *sf; > + struct nouveau_bo *bo; > + > + i...
2014 Mar 06
0
[RFC PATCH] nv50: adjust blit_3d logic
...+ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1069,7 +1069,7 @@ nv50_blit_3d(struct nv50_context *nv50, const struct pipe_blit_info *info) PUSH_DATAf(push, y0); PUSH_DATAf(push, z); BEGIN_NV04(push, NV50_3D(VTX_ATTR_2F_X(0)), 2); - PUSH_DATAf(push, 16384 << nv50_miptree(dst)->ms_x); + PUSH_DATAf(push, 16384/* << nv50_miptree(dst)->ms_x*/); PUSH_DATAf(push, 0.0f); BEGIN_NV04(push, NV50_3D(VTX_ATTR_3F_X(1)), 3); PUSH_DATAf(push, x0); @@ -1077,7 +1077,7 @@ nv50_blit_3d(struct nv50_context *nv50, const struct pipe_blit_info *info)...
2014 Nov 19
5
[PATCH v2 0/3] nouveau: support for custom VRAM domains
...nvc0: use NV_VRAM_DOMAIN() macro gk20a: use NOUVEAU_BO_GART as VRAM domain src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++--- src/gallium/drivers/nouveau/nouveau_screen.c | 6 +++++ src/gallium/drivers/nouveau/nouveau_screen.h | 4 ++++ src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 4 ++-- src/gallium/drivers/nouveau/nvc0/nvc0_compute.c | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 4 ++-- src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 8 +++---- src/gallium/drivers/nouveau/nvc0/nvc...
2014 Jan 17
0
[PATCH v2] nv50, nvc0: clear out RT on a null cbuf
...Z(i)), 2); + PUSH_DATA (push, 64); + PUSH_DATA (push, 0); +} static void nv50_validate_fb(struct nv50_context *nv50) @@ -20,9 +33,18 @@ nv50_validate_fb(struct nv50_context *nv50) PUSH_DATA (push, fb->height << 16); for (i = 0; i < fb->nr_cbufs; ++i) { - struct nv50_miptree *mt = nv50_miptree(fb->cbufs[i]->texture); - struct nv50_surface *sf = nv50_surface(fb->cbufs[i]); - struct nouveau_bo *bo = mt->base.bo; + struct nv50_miptree *mt; + struct nv50_surface *sf; + struct nouveau_bo *bo; + + if (!fb->cbufs[i]) { + nv...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...g/archives/nouveau/2013-June/012821.html Firmware: https://github.com/imirkin/re-vp2/blob/master/extract_firmware.py src/gallium/drivers/nv50/Makefile.sources | 5 +- src/gallium/drivers/nv50/nv50_context.c | 13 +- src/gallium/drivers/nv50/nv50_context.h | 24 + src/gallium/drivers/nv50/nv50_miptree.c | 27 ++ src/gallium/drivers/nv50/nv50_resource.h | 1 + src/gallium/drivers/nv50/nv50_screen.c | 13 +- src/gallium/drivers/nv50/nv50_winsys.h | 4 + src/gallium/drivers/nv50/nv84_video.c | 778 ++++++++++++++++++++++++++++++ src/gallium/drivers/nv50/nv84_video.h | 134 +++...
2014 Jan 23
0
[PATCH v2] nv50, nvc0: clear out RT on a null cbuf
...;> >> static void >> nv50_validate_fb(struct nv50_context *nv50) >> @@ -20,9 +33,18 @@ nv50_validate_fb(struct nv50_context *nv50) >> PUSH_DATA (push, fb->height << 16); >> >> for (i = 0; i < fb->nr_cbufs; ++i) { >> - struct nv50_miptree *mt = nv50_miptree(fb->cbufs[i]->texture); >> - struct nv50_surface *sf = nv50_surface(fb->cbufs[i]); >> - struct nouveau_bo *bo = mt->base.bo; >> + struct nv50_miptree *mt; >> + struct nv50_surface *sf; >> + struct nouveau_bo *bo;...
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...w if there were things that I said I'd do but I forgot about (or if there are more things that you notice). src/gallium/drivers/nv50/Makefile.sources | 5 +- src/gallium/drivers/nv50/nv50_context.c | 13 +- src/gallium/drivers/nv50/nv50_context.h | 24 + src/gallium/drivers/nv50/nv50_miptree.c | 27 + src/gallium/drivers/nv50/nv50_resource.h | 1 + src/gallium/drivers/nv50/nv50_screen.c | 13 +- src/gallium/drivers/nv50/nv50_winsys.h | 4 + src/gallium/drivers/nv50/nv84_video.c | 793 ++++++++++++++++++++++++++++++ src/gallium/drivers/nv50/nv84_video.h | 134 ++++...
2015 Dec 31
3
[Bug 93547] New: Built failed for "Mesa (master): nouveau: remove use of deprecated nouveau_device:: drm_version"
...dwarf -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp -MT nv50/nv50_push.lo -MD -MP -MF $depbase.Tpo -c -o nv50/nv50_push.lo nv50/nv50_push.c &&\ mv -f $depbase.Tpo $depbase.Plo nv50/nv50_miptree.c: In function 'nv50_miptree_create': nv50/nv50_miptree.c:342:25: error: dereferencing pointer to incomplete type bool compressed = drm->version >= 0x01000101; ^ Makefile:1251: recipe for target 'nv50/nv50_miptree.lo' failed make[3]: *** [nv50/nv50...
2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...> > Firmware: > https://github.com/imirkin/re-vp2/blob/master/extract_firmware.py > > src/gallium/drivers/nv50/Makefile.sources | 5 +- > src/gallium/drivers/nv50/nv50_context.c | 13 +- > src/gallium/drivers/nv50/nv50_context.h | 24 + > src/gallium/drivers/nv50/nv50_miptree.c | 27 ++ > src/gallium/drivers/nv50/nv50_resource.h | 1 + > src/gallium/drivers/nv50/nv50_screen.c | 13 +- > src/gallium/drivers/nv50/nv50_winsys.h | 4 + > src/gallium/drivers/nv50/nv84_video.c | 778 ++++++++++++++++++++++++++++++ > src/gallium/drivers/nv50/n...