[Mesa-dev] [PATCH] swrast: Fix crash in sPriv-swrast_loader-getImage().

2013-09-01 Thread Johannes Obermayr
From: Egbert Eich e...@freedesktop.org When glXBindTexImageEXT is called and SWrast is used there will be a crash when sPriv-swrast_loader-getImage() is called from swrastSetTexBuffer2(). Reason: no memory has been allocated for the destination thus texImage-Data is NULL. Call

Re: [Mesa-dev] [PATCH 21/22] i965/gen7: Generalize gen7_vs_state in preparation for GS.

2013-09-01 Thread Paul Berry
On 29 August 2013 21:31, Kenneth Graunke kenn...@whitecape.org wrote: On 08/29/2013 04:06 PM, Eric Anholt wrote: The struct argument is what makes me cringe. If upload_vs_state() was: static void upload_vs_state(struct brw_context *brw) { struct gl_context *ctx = brw-ctx;

[Mesa-dev] [PATCH] nv30: find first unused texcoord rather than bailing if first is used

2013-09-01 Thread Ilia Mirkin
This fixes shaders produced by supertuxkart. Cc: 9.2 mesa-sta...@lists.freedesktop.org Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- src/gallium/drivers/nv30/nvfx_fragprog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/nv30/nvfx_fragprog.c

[Mesa-dev] [PATCH] glx: Initialize OpenGL version to 1.0

2013-09-01 Thread Rico Schüller
Some driver/card combinations (r200/RV280, i915/915G) don't support OpenGL 2.1. These create in some corner cases an indirect context instead of a direct context when calling glXCreateContextAttribsARB(). This happens because of a bad default value. To avoid this, choose a more sane default

Re: [Mesa-dev] [PATCH 4/6] i965: Clarify that we only check one prim's type for cut index support.

2013-09-01 Thread Kenneth Graunke
On 08/30/2013 12:26 PM, Paul Berry wrote: On 30 August 2013 10:36, Eric Anholt e...@anholt.net mailto:e...@anholt.net wrote: Kenneth Graunke kenn...@whitecape.org mailto:kenn...@whitecape.org writes: can_cut_index_handle_prims() was passed an array of _mesa_prim objects

[Mesa-dev] [PATCH] i965: Actually check every primitive for cut index support.

2013-09-01 Thread Kenneth Graunke
can_cut_index_handle_prims() was passed an array of _mesa_prim objects and a count, and ran a loop for that many iterations. However, it treated the array like a pointer, repeatedly checking the first element. This patch makes it actually check every primitive. Signed-off-by: Kenneth Graunke