Re: [Mesa-dev] [PATCH 11/18] i965: Replace the region in DRIimage with just a BO pointer and stride.

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 04:34:36PM -0700, Eric Anholt wrote: > Regions aren't refcounted safely for multithreaded applications, and > they're not terribly useful wrappers of a BO, so I'm trying to remove > them. > > Even the stride I added here could probably be reduced to use of an > existing fie

Re: [Mesa-dev] [PATCH] i965: Don't enable reset notification support on Gen4-5.

2014-04-30 Thread Kenneth Graunke
On 04/07/2014 08:47 AM, Ian Romanick wrote: > On 03/13/2014 08:15 AM, Mika Kuoppala wrote: >> Ian Romanick writes: >> >>> On 03/12/2014 01:43 AM, Kenneth Graunke wrote: arekm reported that using Chrome with GPU acceleration enabled on GM45 triggered the hw_ctx != NULL assertion in brw_ge

Re: [Mesa-dev] [PATCH 10/18] i965: Make intel_set_texture_region just take a BO and pitch.

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 04:34:35PM -0700, Eric Anholt wrote: > I want to do this to get the region removed from DRI images. However, it > does mean that we won't share the intel_region between the rb and the > texture for texture_from_pixmap. I think that's fine. Sounds right to me. Embedding th

Re: [Mesa-dev] [PATCH 09/18] i965: Stop making a pointless region for DRI2 to just throw it away.

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 04:34:34PM -0700, Eric Anholt wrote: > I noticed that we were doing this while changing the DRI3 path to not use > regions, which involved changing the signature of > intel_update_winsys_renderbuffer_miptree() this way. > --- > src/mesa/drivers/dri/i965/brw_context.c

Re: [Mesa-dev] [PATCH 08/18] i965: Drop the global GEM name from regions.

2014-04-30 Thread Chad Versace
On Wed, Apr 30, 2014 at 11:25:27PM -0700, Chad Versace wrote: > On Tue, Apr 29, 2014 at 04:34:33PM -0700, Eric Anholt wrote: > > Once a buffer has been named, drm_intel_bo_flink() is just a getter. > > Yep. Surprising but true. (Well, it surprised me). > > > diff --git a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 08/18] i965: Drop the global GEM name from regions.

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 04:34:33PM -0700, Eric Anholt wrote: > Once a buffer has been named, drm_intel_bo_flink() is just a getter. Yep. Surprising but true. (Well, it surprised me). > diff --git a/src/mesa/drivers/dri/i965/brw_context.c > b/src/mesa/drivers/dri/i965/brw_context.c > index 28118b

Re: [Mesa-dev] [PATCH 07/18] i965: Drop the tiling argument to intel_miptree_create_for_bo.

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 04:34:32PM -0700, Eric Anholt wrote: > The drm function to get the tiling is just a getter storing the two > pointers, so we don't need to go out of our way to avoid it. > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c > b/src/mesa/drivers/dri/i965/intel_mipmap

Re: [Mesa-dev] [PATCH 06/18] i965: Drop pointless cast of texObj to intelObj.

2014-04-30 Thread Chad Versace
Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 05/18] i965: Move intel_region_get_aligned_offset() to be a miptree function.

2014-04-30 Thread Chad Versace
> @@ -856,16 +856,16 @@ gen6_blorp_emit_depth_stencil_config(struct brw_context > *brw, > > /* 3DSTATE_HIER_DEPTH_BUFFER */ > { > - struct intel_region *hiz_region = params->depth.mt->hiz_mt->region; > + struct intel_mipmap_tree *hiz_mt = params->depth.mt->hiz_mt; While you're

Re: [Mesa-dev] [PATCH 04/18] i965: Move intel_region_get_tile_offsets() to be a miptree function.

2014-04-30 Thread Chad Versace
> /** > + * This function computes masks that may be used to select the bits of the X > + * and Y coordinates that indicate the offset within a tile. If the region > is Tiny nit ---> ^^ > + * untiled, the masks are set to 0. > + */ B

Re: [Mesa-dev] [PATCH 03/18] i965: Fix another broken offset-aligned-to-tile test.

2014-04-30 Thread Chad Versace
Patches 1-3 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 10/18] i965: Make intel_set_texture_region just take a BO and pitch.

2014-04-30 Thread Kristian Høgsberg
On Tue, Apr 29, 2014 at 4:34 PM, Eric Anholt wrote: > I want to do this to get the region removed from DRI images. However, it > does mean that we won't share the intel_region between the rb and the > texture for texture_from_pixmap. I think that's fine. My review got stuck on this one as I tho

Re: [Mesa-dev] [PATCH 15/18] i965: Drop region usage from DRI2 winsys-allocated buffers.

2014-04-30 Thread Kristian Høgsberg
On Tue, Apr 29, 2014 at 4:34 PM, Eric Anholt wrote: > --- > src/mesa/drivers/dri/i965/intel_screen.c | 30 +- > 1 file changed, 17 insertions(+), 13 deletions(-) Oh, right, I forgot about the __DRIbuffer usage. This really show how intel_region just added redundancy.

Re: [Mesa-dev] [PATCH 05/21] meta: Fix saving the program pipeline state

2014-04-30 Thread Chia-I Wu
On Thu, May 1, 2014 at 12:11 AM, Ian Romanick wrote: > On 04/29/2014 08:43 PM, Chia-I Wu wrote: >> On Wed, Apr 30, 2014 at 8:52 AM, Ian Romanick wrote: >>> From: Ian Romanick >>> >>> This code was broken in some odd ways before. Too much state was being >>> saved, it was being restored in the w

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add support for Mullins asics.

2014-04-30 Thread Marek Olšák
BTW, we may need to release libdrm_radeon first before we can commit this. Marek On Thu, May 1, 2014 at 1:30 AM, Alex Deucher wrote: > From: Samuel Li > > Signed-off-by: Samuel Li > Signed-off-by: Alex Deucher > --- > src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++ > src/gallium/dr

Re: [Mesa-dev] [00/21] Last of SSO, take 47

2014-04-30 Thread Eric Anholt
Ian Romanick writes: > On 04/30/2014 12:41 PM, Eric Anholt wrote: >> Ian Romanick writes: >> >>> A lot the patches in this series were slightly reworked to incorporate >>> Eric's feedback (remove ir_variable::user_location) on the previous >>> attempt. Other than that change, I patch 1 is new,

Re: [Mesa-dev] [PATCH 1/2] gallivm: fix 2 leaks in disassembly code

2014-04-30 Thread Brian Paul
On 04/30/2014 04:41 PM, srol...@vmware.com wrote: From: Roland Scheidegger don't leak the MCSubtargetInfo (not really big, was already fixed with llvm master) and TargetMachine (big). While this is only used for debugging the leak is large enough to get you into trouble in some cases. Tested wi

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add support for Mullins asics.

2014-04-30 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Thu, May 1, 2014 at 1:30 AM, Alex Deucher wrote: > From: Samuel Li > > Signed-off-by: Samuel Li > Signed-off-by: Alex Deucher > --- > src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++ > src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 1/2] radeonsi: add support for Mullins asics.

2014-04-30 Thread Alex Deucher
From: Samuel Li Signed-off-by: Samuel Li Signed-off-by: Alex Deucher --- src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++ src/gallium/drivers/radeonsi/si_state.c | 2 ++ src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 1 + src/gallium/winsys/radeon/drm/radeon_winsys.h

[Mesa-dev] [PATCH 2/2] radeonsi: add Mullins pci ids.

2014-04-30 Thread Alex Deucher
From: Samuel Li Signed-off-by: Samuel Li Signed-off-by: Alex Deucher --- include/pci_ids/radeonsi_pci_ids.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/pci_ids/radeonsi_pci_ids.h b/include/pci_ids/radeonsi_pci_ids.h index 7b42d5e..5099c74 100644 --- a/includ

Re: [Mesa-dev] [PATCH] glx/drisw: fix memory leak when destroying screen.

2014-04-30 Thread Brian Paul
On 04/30/2014 05:04 PM, srol...@vmware.com wrote: From: Roland Scheidegger --- src/glx/drisw_glx.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 751626b..5885b66 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -619,6 +619

Re: [Mesa-dev] [PATCH 2/2] osmesa: (trivial) fix typo

2014-04-30 Thread Brian Paul
On 04/30/2014 04:41 PM, srol...@vmware.com wrote: From: Roland Scheidegger c703658b3965bf2e4f3593a0d54be03e8e8b1436 used Texture.MaxEnabledTexImageUnit instead of Texture._MaxEnabledTexImageUnit. --- src/mesa/drivers/osmesa/osmesa.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [Mesa-dev] [PATCH 13/21] glsl: Track explicitly set varying locations

2014-04-30 Thread Ian Romanick
On 04/30/2014 02:26 PM, Timothy Arceri wrote: > Sorry to waste more of your time but this is driving me nuts. For my own > education :) can you tell me how this code works? Maybe I'm making > myself look silly by not understanding some basic concept of c++. But to > me it looks like var->data.locat

[Mesa-dev] [PATCH] glx/drisw: fix memory leak when destroying screen.

2014-04-30 Thread sroland
From: Roland Scheidegger --- src/glx/drisw_glx.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 751626b..5885b66 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -619,6 +619,7 @@ driswDestroyScreen(struct glx_screen *base)

[Mesa-dev] [PATCH] R600/SI: Add processor type for Mullins.

2014-04-30 Thread Alex Deucher
From: Samuel Li Signed-off-by: Samuel Li Signed-off-by: Alex Deucher --- lib/Target/R600/Processors.td | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/R600/Processors.td b/lib/Target/R600/Processors.td index fde4481..ce17d7c 100644 --- a/lib/Target/R600/Processors.td +++ b/lib

[Mesa-dev] [PATCH 2/2] osmesa: (trivial) fix typo

2014-04-30 Thread sroland
From: Roland Scheidegger c703658b3965bf2e4f3593a0d54be03e8e8b1436 used Texture.MaxEnabledTexImageUnit instead of Texture._MaxEnabledTexImageUnit. --- src/mesa/drivers/osmesa/osmesa.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mes

[Mesa-dev] [PATCH 1/2] gallivm: fix 2 leaks in disassembly code

2014-04-30 Thread sroland
From: Roland Scheidegger don't leak the MCSubtargetInfo (not really big, was already fixed with llvm master) and TargetMachine (big). While this is only used for debugging the leak is large enough to get you into trouble in some cases. Tested with llvm 3.1 and master. Before (llvm 3.1), GALLIVM_D

Re: [Mesa-dev] [PATCH 15/21] linker: Modify cross_validate_outputs_to_inputs to match using explicit locations

2014-04-30 Thread Ian Romanick
On 04/30/2014 12:40 PM, Eric Anholt wrote: > Ian Romanick writes: > >> From: Ian Romanick >> >> This will be used for GL_ARB_separate_shader_objects. That extension >> not only allows separable shaders to rendezvous by location, but it also >> allows traditionally linked shaders to rendezvous b

Re: [Mesa-dev] [00/21] Last of SSO, take 47

2014-04-30 Thread Ian Romanick
On 04/30/2014 12:41 PM, Eric Anholt wrote: > Ian Romanick writes: > >> A lot the patches in this series were slightly reworked to incorporate >> Eric's feedback (remove ir_variable::user_location) on the previous >> attempt. Other than that change, I patch 1 is new, and patch 16 adds >> previous

Re: [Mesa-dev] [PATCH 13/21] glsl: Track explicitly set varying locations

2014-04-30 Thread Timothy Arceri
Sorry to waste more of your time but this is driving me nuts. For my own education :) can you tell me how this code works? Maybe I'm making myself look silly by not understanding some basic concept of c++. But to me it looks like var->data.location already contains the explicit location and you are

Re: [Mesa-dev] [PATCH 01/10] mesa: Add entry for extension ARB_texture_stencil8

2014-04-30 Thread Ian Romanick
Patches 1, 2, 4, 5, 6 (with the small change suggested), 7, 8, 9, and 10 are all Reviewed-by: Ian Romanick On 03/21/2014 03:01 PM, Anuj Phogat wrote: > Cc: > Signed-off-by: Anuj Phogat > --- > src/mesa/main/mtypes.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/mesa/main/mtype

Re: [Mesa-dev] [PATCH 06/10] mesa: Allow srcFormat=GL_DEPTH_STENCIL in _mesa_texstore_xx_xx() functions

2014-04-30 Thread Ian Romanick
On 03/21/2014 03:01 PM, Anuj Phogat wrote: > _mesa_texstore_z24_s8() and _mesa_texstore_z32f_x24s8() are capable of > handling GL_DEPTH_STENCIL format. So, allow it in both the functions. > > Cc: > Signed-off-by: Anuj Phogat > --- > src/mesa/main/texstore.c | 6 -- > 1 file changed, 4 inser

[Mesa-dev] [PATCH 1/2] nouveau: remove cb_dirty, it's never used

2014-04-30 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nouveau_buffer.c | 4 +--- src/gallium/drivers/nouveau/nouveau_context.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c in

[Mesa-dev] [PATCH 2/2] nouveau: add ARB_buffer_storage support

2014-04-30 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- Light testing with dolphin-emu on a G96, seems to mostly work. Saw one or two glitches (for like 1 frame), but that could well have been a bug in the emu. It's a little silly to have all this super-super-repetitive code, but short of rearranging the drivers, no eas

Re: [Mesa-dev] [PATCH 1/4] mesa: Track maximum CurrentTexUnit to reduce glDeleteTextures() overhead.

2014-04-30 Thread Kenneth Graunke
On 04/25/2014 06:19 PM, Eric Anholt wrote: > No more walking 96*6 pointers looking to see if they're the current > texture, when we only use the first 2 out of 96 units. -6.26002% +/- > 1.87817% effect on cairo runtime on no-fbo-cache glamor (n=36). > --- > src/mesa/main/mtypes.h | 3 +++ > src

Re: [Mesa-dev] [PATCH 1/9] i965/fs: Add support for fs_inst::force_writemask_all on Broadwell.

2014-04-30 Thread Eric Anholt
Kenneth Graunke writes: > This must not have existed when I wrote the original code. The atomic > operation header setup code uses this. Other than the tiny comments I had, this series is: Reviewed-by: Eric Anholt pgp9IHfdw8ZUH.pgp Description: PGP signature

Re: [Mesa-dev] [PATCH 7/9] i965/fs: Port untyped atomic message support to Broadwell.

2014-04-30 Thread Eric Anholt
Kenneth Graunke writes: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77221 > Signed-off-by: Kenneth Graunke > diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > index dae4026..fffde0c 100644 > --- a/src/mesa/drivers/dr

Re: [Mesa-dev] [PATCH 4/9] i965: Disassemble atomic operations and other DP:DC1 stuff on Broadwell.

2014-04-30 Thread Eric Anholt
Kenneth Graunke writes: > This is similar to what Eric did for Gen7 a little while ago; it also > has support for untyped surface reads. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/gen8_disasm.c | 65 > + > 1 file changed, 65 insertions(

Re: [Mesa-dev] [PATCH 6/9] i965/fs: Port untyped surface read support to Broadwell.

2014-04-30 Thread Eric Anholt
Kenneth Graunke writes: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77221 > Signed-off-by: Kenneth Graunke > diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp > index 856a23e..dae4026 100644 > --- a/src/mesa/drivers/dr

Re: [Mesa-dev] [PATCH 03/14] mesa: Drop _EnabledUnits.

2014-04-30 Thread Kenneth Graunke
On 04/24/2014 05:50 PM, Eric Anholt wrote: > The field wasn't really valid, since we've got more than 32 units now. It > turns out it was mostly just used for checking != 0, or checking for fixed > function coordinates, though. > --- > src/mesa/drivers/common/meta.c | 2 +- > src

Re: [Mesa-dev] [PATCH] i965: Make Broadwell HiZ path arrange for TC flushes.

2014-04-30 Thread Eric Anholt
Chad Versace writes: > On Mon, Apr 21, 2014 at 02:08:49PM -0700, Kenneth Graunke wrote: >> HiZ operations make the depth/render caches out of sync with the sampler >> caches. We need to arrange for a TC flush to happen before the target >> buffer is used by the sampler. Calling brw_render_cache

[Mesa-dev] [PATCH] clover: Add a stub implementation of clCreateImage()

2014-04-30 Thread Tom Stellard
Now that we are uisng the OpenCL 1.2 headers, applications expect all the OpenCL 1.2 functions to be implemented. This fixes linking errors with the piglit CL tests. --- src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +- src/gallium/state_trackers/clover/api/dispatch.hpp | 8 +++- s

Re: [Mesa-dev] [PATCH 11/18] i965: Replace the region in DRIimage with just a BO pointer and stride.

2014-04-30 Thread Eric Anholt
Kenneth Graunke writes: > On 04/29/2014 04:34 PM, Eric Anholt wrote: > [snip] >> @@ -558,12 +572,8 @@ intel_dup_image(__DRIimage *orig_image, void >> *loaderPrivate) >> if (image == NULL) >>return NULL; >> >> - intel_region_reference(&image->region, orig_image->region); >> - if

Re: [Mesa-dev] [00/21] Last of SSO, take 47

2014-04-30 Thread Eric Anholt
Ian Romanick writes: > A lot the patches in this series were slightly reworked to incorporate > Eric's feedback (remove ir_variable::user_location) on the previous > attempt. Other than that change, I patch 1 is new, and patch 16 adds > previously missing display list support. Patch 2, 3, 13, 1

Re: [Mesa-dev] [PATCH 15/21] linker: Modify cross_validate_outputs_to_inputs to match using explicit locations

2014-04-30 Thread Eric Anholt
Ian Romanick writes: > From: Ian Romanick > > This will be used for GL_ARB_separate_shader_objects. That extension > not only allows separable shaders to rendezvous by location, but it also > allows traditionally linked shaders to rendezvous by location. The spec > says: > > 36. How does t

Re: [Mesa-dev] Minecraft crash in nouveau_dri.so

2014-04-30 Thread Kevin H. Hobbs
Ilia, thank you for looking at it. On 04/30/2014 12:47 PM, Ilia Mirkin wrote: > The relevant code: > >if (slab->free == 0) { > LIST_DEL(&slab->head); > LIST_ADD(&slab->head, &bucket->full); >} > > And the LIST_ADD is line 206 (on the 9.2 branch). > > Do you know if multiple

[Mesa-dev] [PATCH] radeonsi: Program RASTER_CONFIG for harvested GPUs v2

2014-04-30 Thread Tom Stellard
v2: - Write RASTER_CONFIG for all SEs https://bugs.freedesktop.org/show_bug.cgi?id=60879 --- src/gallium/drivers/radeonsi/si_state.c | 100 -- src/gallium/drivers/radeonsi/sid.h| 8 +- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 3 + src

Re: [Mesa-dev] [PATCH] Add an ir_triop_mid3 expression and lower it to mins and maxs.

2014-04-30 Thread Ian Romanick
On 04/30/2014 03:21 AM, Petri Latvala wrote: > On 04/29/2014 09:57 PM, Matt Turner wrote: >> On Tue, Apr 29, 2014 at 6:01 AM, Petri Latvala >> wrote: >>> For the record, tested this with the following shader: >>> >>> >> Cool. Please submit this as a piglit test. > > Sent to piglit mailing list, w

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 --- Comment #6 from Tapani Pälli --- (In reply to comment #5) > The demos need to use eglGetProcAddress for extension functions. The patch > is the right approach, but having a non-static function pointer with the > same name as a function is ve

Re: [Mesa-dev] Minecraft crash in nouveau_dri.so

2014-04-30 Thread Ilia Mirkin
The relevant code: if (slab->free == 0) { LIST_DEL(&slab->head); LIST_ADD(&slab->head, &bucket->full); } And the LIST_ADD is line 206 (on the 9.2 branch). Do you know if multiple GL threads are used? I looked at the code, and it seems perfectly fine, and hasn't changed in forev

[Mesa-dev] [Bug 78123] New: svga prints out command errors

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78123 Priority: medium Bug ID: 78123 Assignee: mesa-dev@lists.freedesktop.org Summary: svga prints out command errors Severity: critical Classification: Unclassified OS: Linux (All

Re: [Mesa-dev] intel, dma-buf import and egl image external

2014-04-30 Thread Chad Versace
On Tue, Apr 29, 2014 at 01:21:11PM -0700, Eric Anholt wrote: > Chad Versace writes: > > > On Mon, Mar 24, 2014 at 09:07:32AM +1000, Dave Airlie wrote: > >> On Sat, Mar 8, 2014 at 12:13 AM, Pohjolainen, Topi > >> wrote: > >> > On Mon, Mar 03, 2014 at 01:19:48PM +1000, Dave Airlie wrote: > >> >> T

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 --- Comment #5 from Ian Romanick --- The demos need to use eglGetProcAddress for extension functions. The patch is the right approach, but having a non-static function pointer with the same name as a function is very dangerous. You wouldn't dec

Re: [Mesa-dev] [PATCH 05/21] meta: Fix saving the program pipeline state

2014-04-30 Thread Ian Romanick
On 04/29/2014 08:43 PM, Chia-I Wu wrote: > On Wed, Apr 30, 2014 at 8:52 AM, Ian Romanick wrote: >> From: Ian Romanick >> >> This code was broken in some odd ways before. Too much state was being >> saved, it was being restored in the wrong order, and in the wrong way. >> The biggest problem was

Re: [Mesa-dev] [PATCH] mesa: change invalid texture swizzle error to GL_INVALID_ENUM

2014-04-30 Thread Ian Romanick
On 04/24/2014 02:29 PM, Brian Paul wrote: > The original GL_EXT_texture_swizzle extensions said GL_INVALID_OPERATION > was to be generated when the an invalid swizzle was passed to > glTexParameter(). But in OpenGL 3.3 and later, the error should be > GL_INVALID_ENUM. Reviewed-by: Ian Romanick

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 --- Comment #4 from Scott Moreau --- (In reply to comment #3) > Created attachment 98234 [details] [review] > hopeful patch to fix the issue > > I'm having problems configuring demos build system to reproduce this ... No special configuration f

Re: [Mesa-dev] [00/21] Last of SSO, take 47

2014-04-30 Thread Ian Romanick
On 04/29/2014 05:52 PM, Ian Romanick wrote: > A lot the patches in this series were slightly reworked to incorporate > Eric's feedback (remove ir_variable::user_location) on the previous > attempt. Other than that change, I patch 1 is new, and patch 16 adds > previously missing display list suppor

Re: [Mesa-dev] [PATCH] mesa: change invalid texture swizzle error to GL_INVALID_ENUM

2014-04-30 Thread Brian Paul
Ping. -Brian On 04/24/2014 03:29 PM, Brian Paul wrote: The original GL_EXT_texture_swizzle extensions said GL_INVALID_OPERATION was to be generated when the an invalid swizzle was passed to glTexParameter(). But in OpenGL 3.3 and later, the error should be GL_INVALID_ENUM. --- src/mesa/main/

Re: [Mesa-dev] [PATCH 13/21] glsl: Track explicitly set varying locations

2014-04-30 Thread Ian Romanick
On 04/29/2014 10:57 PM, Timothy Arceri wrote: > Looks like this patch should have been dropped with the removal of > user_location? Nope. We still need to track the location set in the shader. Now it's tracked in the same location field as, say, vertex shader inputs instead of having a special f

[Mesa-dev] [PATCH] Remove directory in path of "drm.h" #include in qxl_drm.h

2014-04-30 Thread Stefan Dirsch
Change '#include "drm/drm.h"' to '#include "drm.h"' as it is also done in other _drm.h files. This helps to enable KMS support in xf86-video-qxl driver. Signed-Off-by: Stefan Dirsch --- include/drm/qxl_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/qxl_drm.

[Mesa-dev] Minecraft crash in nouveau_dri.so

2014-04-30 Thread Kevin H. Hobbs
I'm running Minecraft 1.7.9 on Fedora 19 x86_64 with mesa-dri-drivers-9.2.4-1.20131128.fc19.x86_64. lspci says my graphics card is : 01:00.0 VGA compatible controller: NVIDIA Corporation G86 [Quadro NVS 290] (rev a1) The the console output says : A fatal error has been detected by the Java Ru

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 --- Comment #3 from Tapani Pälli --- Created attachment 98234 --> https://bugs.freedesktop.org/attachment.cgi?id=98234&action=edit hopeful patch to fix the issue I'm having problems configuring demos build system to reproduce this ... however

Re: [Mesa-dev] [PATCH] Add an ir_triop_mid3 expression and lower it to mins and maxs.

2014-04-30 Thread Petri Latvala
On 04/29/2014 09:57 PM, Matt Turner wrote: On Tue, Apr 29, 2014 at 6:01 AM, Petri Latvala wrote: For the record, tested this with the following shader: Cool. Please submit this as a piglit test. Sent to piglit mailing list, with accompanying tests for min3 and max3. Wouldn't it be simpler

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 --- Comment #2 from Scott Moreau --- (In reply to comment #1) > did you run make with a clean directory (make clean or git clean -fdX)? Yes. demos build and link with mesa dfccd5ccd73ec8e9607826c62fb6bf31f9628719 but linking fails with mesa 1a59

[Mesa-dev] [Bug 78101] [bisected] Mesa demos fails to link with drawtex.c:34: undefined reference to `glDrawTexfOES'

2014-04-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78101 Tapani Pälli changed: What|Removed |Added CC||lem...@gmail.com --- Comment #1 from Tapa

Re: [Mesa-dev] Undefined reference in libGLES when shared glapi is disabled

2014-04-30 Thread Emil Velikov
On 30/04/14 00:10, Eric Le Bihan wrote: > On Tue, Apr 29, 2014 at 02:04:25AM +0100, Emil Velikov wrote: >> On 28/04/14 22:56, Eric Le Bihan wrote: >>> Hi! >>> >>> I'm currently cross-compiling Mesa3d for embedded systems using the >>> following configure options: >>> >>> --enable-shared --disable

Re: [Mesa-dev] [PATCH 05/18] i965: Move intel_region_get_aligned_offset() to be a miptree function.

2014-04-30 Thread Kenneth Graunke
On 04/29/2014 04:34 PM, Eric Anholt wrote: [snip] > diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp > b/src/mesa/drivers/dri/i965/gen6_blorp.cpp > index 4222fa8..053612e 100644 > --- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp > +++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp > @@ -804,9 +804,

Re: [Mesa-dev] [PATCH 11/18] i965: Replace the region in DRIimage with just a BO pointer and stride.

2014-04-30 Thread Kenneth Graunke
On 04/29/2014 04:34 PM, Eric Anholt wrote: [snip] > @@ -558,12 +572,8 @@ intel_dup_image(__DRIimage *orig_image, void > *loaderPrivate) > if (image == NULL) >return NULL; > > - intel_region_reference(&image->region, orig_image->region); > - if (image->region == NULL) { > - f

Re: [Mesa-dev] [PATCH 12/18] i965: Drop use of intel_region from miptrees.

2014-04-30 Thread Kenneth Graunke
On 04/29/2014 04:34 PM, Eric Anholt wrote: [snip] > @@ -319,13 +319,15 @@ gen7_update_texture_surface(struct gl_context *ctx, > if (mt->array_spacing_lod0) >surf[0] |= GEN7_SURFACE_ARYSPC_LOD0; > > - surf[1] = mt->region->bo->offset64 + mt->offset; /* reloc */ > + surf[1] = mt->bo