Re: [Mesa-dev] Restrictions on redefine_user_buffer()

2011-03-10 Thread Thomas Hellstrom
On 03/11/2011 12:03 AM, Marek Olšák wrote: On Thu, Mar 10, 2011 at 11:45 PM, Thomas Hellstrom mailto:thellst...@vmware.com>> wrote: Hi, I've been working a bit on optimizing uploads of non-vbo vertex arrays on the svga device. Since we have no knowledge of the vertex array size

[Mesa-dev] [PATCH 2/2] gallium: add NV_texture_barrier support to the interface and st/mesa

2011-03-10 Thread Marek Olšák
--- src/gallium/docs/source/context.rst | 14 ++ src/gallium/include/pipe/p_context.h |3 + src/mesa/SConscript |1 + src/mesa/sources.mak |1 + src/mesa/state_tracker/st_cb_texturebarrier.c | 60

[Mesa-dev] [PATCH 1/2] mesa: add NV_texture_barrier

2011-03-10 Thread Marek Olšák
--- src/mapi/glapi/gen/Makefile |1 + src/mapi/glapi/gen/NV_texture_barrier.xml | 13 +++ src/mapi/glapi/gen/gl_API.xml |2 + src/mesa/SConscript |1 + src/mesa/drivers/common/driverfuncs.c |3 ++ src/mesa/main/api_exec.c

[Mesa-dev] [PATCH 0/2] mesa/gallium: add NV_texture_barrier

2011-03-10 Thread Marek Olšák
Hi, these 2 patches add GL_NV_texture_barrier to Mesa and Gallium, respectively. The extension can be used for programmable blending, where the same texture can be bound as both a sampler and renderbuffer. The same feature exists in Direct10 and the entry point is: VOID APIENTRY ResourceReadAfter

[Mesa-dev] [PATCH] st/mesa: add ARB_shadow_ambient support

2011-03-10 Thread Marek Olšák
It's not nice to see this implemented for r300 and not enable it. I guess this is something the other drivers needn't care about. --- src/gallium/include/pipe/p_defines.h |1 + src/gallium/include/pipe/p_state.h |1 + src/mesa/state_tracker/st_atom_sampler.c |1 + src/mesa/st

[Mesa-dev] Gallium interface little cleanup

2011-03-10 Thread Marek Olšák
Hi, I have done some of the changes in the gallium interface we discussed in the thread called "7 questions...". There are 4 patches in total: 1) gallium: kill is_resource_referenced The function is_resource_referenced is removed. Considering that only st/xorg used it, I don't think this can ca

Re: [Mesa-dev] Problem building current git with osmesa and no gallium

2011-03-10 Thread tom fogal
Kenneth Graunke writes: > On Thursday, March 10, 2011 01:17:04 PM Alexander Neundorf wrote: > > While at it (sorry for newbie questions), do I need gallium (maybe > > swrast) when I want only osmesa rendering into a software buffer ? > > I don't think OSMesa requires Gallium, but I've never used i

Re: [Mesa-dev] Problem building current git with osmesa and no gallium

2011-03-10 Thread Kenneth Graunke
On Thursday, March 10, 2011 01:17:04 PM Alexander Neundorf wrote: > Hi, > > I'm trying to build current git mesa with under Linux, 32bit, gcc 4.2.3 > with the following configure-call: > ./configure --with-driver=osmesa --enable-static --disable-gallium > --disable-egl --disable-glu > > This runs

[Mesa-dev] [Bug 35178] SIGSEGV in brw_draw_init at brw_draw.c:471 with --enable-shared-dricore

2011-03-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35178 Rui Tiago Matos changed: What|Removed |Added Summary|SIGSEGV in brw_draw_init at |SIGSEGV in brw_draw_init at

[Mesa-dev] [PATCH] glsl: add support for gl_InstanceID

2011-03-10 Thread Marcin Slusarz
...by copying support for gl_InstanceIDARB, but without "#extension" check, because EXT_draw_instanced spec does not say anything about it (as opposed to ARB_draw_instanced / gl_InstanceIDARB) and NVIDIA driver already allow it --- I'm not sure this is correct. With this patch applied (+ merged fl

Re: [Mesa-dev] EXT_texture_snorm - is it possible in GL2?

2011-03-10 Thread Brian Paul
On 03/10/2011 03:46 PM, Marek Olšák wrote: Hi, The specification of GL_EXT_texture_snorm says: OpenGL 3.0 is required. This extension is written against the OpenGL 3.0 specification. which simply means we cannot advertise the extension on GL2.1. Would anyone be against violating the requireme

Re: [Mesa-dev] Restrictions on redefine_user_buffer()

2011-03-10 Thread Marek Olšák
On Thu, Mar 10, 2011 at 11:45 PM, Thomas Hellstrom wrote: > Hi, > > I've been working a bit on optimizing uploads of non-vbo vertex arrays on > the svga device. > Since we have no knowledge of the vertex array size before a draw call and > the vertex array may change values in between subsequent d

[Mesa-dev] EXT_texture_snorm - is it possible in GL2?

2011-03-10 Thread Marek Olšák
Hi, The specification of GL_EXT_texture_snorm says: OpenGL 3.0 is required. This extension is written against the OpenGL 3.0 specification. which simply means we cannot advertise the extension on GL2.1. Would anyone be against violating the requirement? The thing is even some of GL2 ha

[Mesa-dev] Restrictions on redefine_user_buffer()

2011-03-10 Thread Thomas Hellstrom
Hi, I've been working a bit on optimizing uploads of non-vbo vertex arrays on the svga device. Since we have no knowledge of the vertex array size before a draw call and the vertex array may change values in between subsequent draw calls it's pretty pointless to upload the whole array to gpu m

Re: [Mesa-dev] [PATCH 0/3] Removing unnecessary flushes in Gallium

2011-03-10 Thread Mark Mueller
On Thu, Mar 10, 2011 at 12:56 PM, Brian Paul wrote: > On 03/10/2011 12:25 PM, Marek Olšák wrote: > >> Hi, >> >> I have reviewed where we call flush() and why and some of them >> seem unnecessary to me. Those flushes may slightly decrease >> performance, depending on each driver, and may hide driv

Re: [Mesa-dev] piglit: add test for early-z testing bugs

2011-03-10 Thread Marek Olšák
Pushed, thanks. Marek On Thu, Mar 10, 2011 at 10:34 PM, Christoph Bumiller < e0425...@student.tuwien.ac.at> wrote: > Patch attached. > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-d

[Mesa-dev] piglit: add test for early-z testing bugs

2011-03-10 Thread Christoph Bumiller
Patch attached. >From bff36009e5bc2bd5aca467b8777b37f46d9f45fb Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 10 Mar 2011 22:26:16 +0100 Subject: [PATCH] early-z: add test to check for early depth testing bugs If early fragment tests cause the depth buffer to be also updated before

[Mesa-dev] Problem building current git with osmesa and no gallium

2011-03-10 Thread Alexander Neundorf
Hi, I'm trying to build current git mesa with under Linux, 32bit, gcc 4.2.3 with the following configure-call: ./configure --with-driver=osmesa --enable-static --disable-gallium --disable-egl --disable-glu This runs, but then the build fails: hammer:~/src/packages/Mesa-git$ make make[1]: Enteri

[Mesa-dev] gallium: adding PointCoord and TexCoord TGSI semantics

2011-03-10 Thread Christoph Bumiller
The attached patches are preliminary, and I didn't try very hard to fix most drivers yet, as I did not want to invest too much time yet only to get shot down later. I'd like to add 2 new TGSI semantics so that nvc0 can identify gl_TexCoord and gl_PointCoord. The reason for this is that nvc0 hardw

Re: [Mesa-dev] [PATCH 0/3] Removing unnecessary flushes in Gallium

2011-03-10 Thread Brian Paul
On 03/10/2011 12:25 PM, Marek Olšák wrote: Hi, I have reviewed where we call flush() and why and some of them seem unnecessary to me. Those flushes may slightly decrease performance, depending on each driver, and may hide driver bugs. glFlush doesn't have to be called in OpenGL so often, and I

Re: [Mesa-dev] [PATCH 0/3] Removing unnecessary flushes in Gallium

2011-03-10 Thread Keith Whitwell
On Thu, 2011-03-10 at 20:25 +0100, Marek Olšák wrote: > Hi, > > I have reviewed where we call flush() and why and some of them > seem unnecessary to me. Those flushes may slightly decrease > performance, depending on each driver, and may hide driver bugs. > > glFlush doesn't have to be called in

[Mesa-dev] [PATCH 3/3] draw: remove unnecessary flush

2011-03-10 Thread Marek Olšák
--- src/gallium/auxiliary/draw/draw_pipe_pstipple.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c index ea62c97..fe3627b 100644 --- a/src/gallium/auxiliary/draw/draw_

[Mesa-dev] [PATCH 2/3] st/vega: remove unnecessary flushes

2011-03-10 Thread Marek Olšák
I don't see a reason we need them. --- src/gallium/state_trackers/vega/api_images.c |4 src/gallium/state_trackers/vega/image.c |8 src/gallium/state_trackers/vega/mask.c |2 -- 3 files changed, 0 insertions(+), 14 deletions(-) diff --git a/src/gallium/state_t

[Mesa-dev] [PATCH 1/3] st/mesa: remove unnecessary flushes

2011-03-10 Thread Marek Olšák
The framebuffer cache flush should be implicit when calling set_framebuffer_state. There is no need to flush the command stream either. --- src/gallium/auxiliary/util/u_gen_mipmap.c |2 -- src/mesa/state_tracker/st_cb_fbo.c|3 --- 2 files changed, 0 insertions(+), 5 deletions(-)

[Mesa-dev] [PATCH 0/3] Removing unnecessary flushes in Gallium

2011-03-10 Thread Marek Olšák
Hi, I have reviewed where we call flush() and why and some of them seem unnecessary to me. Those flushes may slightly decrease performance, depending on each driver, and may hide driver bugs. glFlush doesn't have to be called in OpenGL so often, and I think state trackers should follow suit. The

Re: [Mesa-dev] Coding or Table based approach for r600g? (was RFC: 0001-r600g-R700-can-do-more-than-8-tex-and-vtx-clauses.patch)

2011-03-10 Thread Henri Verbeet
2011/3/9 Christian König : > So please take a look at the attached patch, it shouldn't change the > generated bytecode a bit, but just makes the code more readable (at > least I think so) and easier to extend. > The general approach makes sense to me. Having flags may be nicer than having separate

Re: [Mesa-dev] [PATCH] u_blitter: Do blits in linear color space.

2011-03-10 Thread Marek Olšák
This looks good to me. Marek On Wed, Mar 9, 2011 at 9:31 PM, Henri Verbeet wrote: > Blits between sRGB and linear formats should happen in linear color space. > This fixes piglit fbo/fbo-srgb-blit. > --- > src/gallium/auxiliary/util/u_blit.c| 57 > > src/

[Mesa-dev] [Bug 35178] SIGSEGV in brw_draw_init at brw_draw.c:471

2011-03-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35178 --- Comment #1 from Rui Tiago Matos 2011-03-10 09:47:34 PST --- BTW, hardware is Intel(R) Ironlake Mobile. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are

[Mesa-dev] [Bug 35178] New: SIGSEGV in brw_draw_init at brw_draw.c:471

2011-03-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35178 Summary: SIGSEGV in brw_draw_init at brw_draw.c:471 Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

Re: [Mesa-dev] [PATCH] gallium/util: Upload manager optimizations

2011-03-10 Thread José Fonseca
On Thu, 2011-03-10 at 06:01 -0800, Thomas Hellstrom wrote: > Make sure that the upload manager doesn't upload data that's not > dirty. This speeds up the viewperf test proe-04/1 a factor 5 or so on svga. Sweet! A few comments inline > Also introduce an u_upload_unmap() function that can be used

[Mesa-dev] [PATCH] gallium/util: Upload manager optimizations

2011-03-10 Thread Thomas Hellstrom
Make sure that the upload manager doesn't upload data that's not dirty. This speeds up the viewperf test proe-04/1 a factor 5 or so on svga. Also introduce an u_upload_unmap() function that can be used instead of u_upload_flush() so that we can pack even more data in upload buffers. With this we c