Displaying 9 results from an estimated 9 matches for "pipe_texture".
2009 Dec 31
1
[PATCH] Print NOUVEAU_NO_SWIZZLE and NOUVEAU_NO_TRANSFER messages only once
...ns(-)
diff --git a/src/gallium/drivers/nv04/nv04_transfer.c b/src/gallium/drivers/nv04/nv04_transfer.c
index 2dd2e14..f7a64f9 100644
--- a/src/gallium/drivers/nv04/nv04_transfer.c
+++ b/src/gallium/drivers/nv04/nv04_transfer.c
@@ -41,6 +41,9 @@ nv04_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
 	struct nv04_miptree *mt = (struct nv04_miptree *)pt;
 	struct nv04_transfer *tx;
 	struct pipe_texture tx_tex_template, *tx_tex;
+	static int no_transfer = -1;
+	if(no_transfer < 0)
+		no_transfer = debug_get_bool_option("NOUVEAU_NO_TRANSFER", TRUE/*XXX:FALSE*/);
 
 	tx = CALLOC...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code
...es.h"
+#include "util/u_format.h"
 #include "util/u_math.h"
 
 #include "nv04_context.h"
-#include "nv04_screen.h"
 
-static void
-nv04_miptree_layout(struct nv04_miptree *nv04mt)
+static unsigned
+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);
+
+	/*...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code (v2)
...es.h"
+#include "util/u_format.h"
 #include "util/u_math.h"
 
 #include "nv04_context.h"
-#include "nv04_screen.h"
 
-static void
-nv04_miptree_layout(struct nv04_miptree *nv04mt)
+static unsigned
+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);
+
+	/*...
2008 Nov 11
2
Memory corruption on Gallium window resize, diagnosed?
...derbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
                              GLenum internalFormat,
                              GLuint width, GLuint height)
{
   struct pipe_context *pipe = ctx->st->pipe;
   struct st_renderbuffer *strb = st_renderbuffer(rb);
   struct pipe_texture template;
   unsigned surface_usage;
   /* Free the old surface and texture
    */
   pipe_surface_reference( &strb->surface, NULL );
   pipe_texture_reference( &strb->texture, NULL );
is executed, which AFAICT frees the pipe_surface. My backtraces
show it really is freed, since the...
2009 Dec 04
1
[Bug 25440] New: PATCH: fixes conflicting miptree definitions
...t
Created an attachment (id=31731)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=31731)
Patch to fix problem above
There is a conflict between the definitions of struct nv50_miptree and
nv[1-4]0_miptree + nv04_miptree. Note that nv50_miptree starts with struct
nouveau_miptree. Sometimes pipe_textures are cast to nouveau_miptree, although
the pt was part of a nv40_miptree (for example). This results in the bo field
pointing to an incorrect location, resulting in segfaults, etc. The patch does
not change the nv50 driver (or shouldn't). I have tested it on 7300 GT only. 
Best Wishes,
Bob Gl...
2009 Jul 12
0
[PATCH 2/3] nv50: fix viewport transform
...state_validate.c
@@ -31,6 +31,11 @@ nv50_state_validate_fb(struct nv50_context *nv50)
 	struct pipe_framebuffer_state *fb = &nv50->framebuffer;
 	unsigned i, w, h, gw = 0;
 
+	nv50->fb_invert_y = 0;
+	if (fb->nr_cbufs && (fb->cbufs[0]->texture->tex_usage &
+			     PIPE_TEXTURE_USAGE_DISPLAY_TARGET))
+		nv50->fb_invert_y = fb->cbufs[0]->height;
+
 	for (i = 0; i < fb->nr_cbufs; i++) {
 		struct pipe_texture *pt = fb->cbufs[i]->texture;
 		struct nouveau_bo *bo = nv50_miptree(pt)->bo;
@@ -263,6 +268,7 @@ scissor_uptodate:
 
 	if (nv50->dirty &...
2010 May 21
2
[Mesa-dev] RFC: gallium-msaa branch merge
...till uses a pipe_surface as destination, which should
> probably be changed at some point too but the change was already big
> enough imho.
>
> Historically, blits had to operate on surfaces IIRC since there actually
> were surfaces in gallium not backed by a pipe_resource (then
> pipe_texture) but those are gone. So get_tex_surface() should actually
> be viewed as the analogous function to create_sampler_view() (and yes it
> will migrate to context too and probably renamed to something else), it
> creates a view of a resource (the pipe_surface) to be used as a render
> targe...
2009 Aug 25
3
[Bug 23505] New: KDE's Kubrick has problems with xf86-video-nouveau driver
http://bugs.freedesktop.org/show_bug.cgi?id=23505
           Summary: KDE's Kubrick has problems with xf86-video-nouveau
                    driver
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/nouveau
        AssignedTo: nouveau at
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 +++++++++++++