Re: [Mesa-dev] Upcoming Mesa releases

2012-05-03 Thread Brian Paul
On 05/03/2012 03:38 PM, Ian Romanick wrote: To keep in the habit of doing regular releases, I'd like to propose the following set of release dates. We had previously discussed doing stable releases monthly and feature releases every six months. This set of dates basically reflects that. I should

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Mandeep Singh Baines
On Thu, May 3, 2012 at 3:51 PM, Kristian Høgsberg wrote: > On Thu, May 3, 2012 at 5:08 PM, Mandeep Baines > wrote: >> 2012/5/2 Kristian Høgsberg : >>> This new gbm entry point allows writing data into a gbm bo.  The bo has >>> to be created with the GBM_BO_USE_WRITE flag, and it's only required

[Mesa-dev] [PATCH] intel: Disable ARB_framebuffer_object in ES contexts

2012-05-03 Thread Chad Versace
This patch removes ARB_framebuffer_object from the GLES1 and GLES2 extension lists in intel_extensions_es.c. Fixes a crash in the Android browser on Ice Cream Sandwich. The Android browser crashed because it did the following, which is legal in GLES2 but not in ARB_framebuffer_object. glGenFr

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Chad Versace
On 05/02/2012 06:32 PM, Chad Versace wrote: > Mesa has problems in the way it implements glBindFramebuffer and > glBindFramebufferEXT due to both being implemented by an overloaded > _mesa_BindFramebufferEXT. This problem causes an Android app [1] to crash, > and I want your opinion on how we shou

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Kristian Høgsberg
On Thu, May 3, 2012 at 5:08 PM, Mandeep Baines wrote: > 2012/5/2 Kristian Høgsberg : >> This new gbm entry point allows writing data into a gbm bo.  The bo has >> to be created with the GBM_BO_USE_WRITE flag, and it's only required to >> work for GBM_BO_USE_CURSOR_64X64 bos. >> >> The gbm API is d

[Mesa-dev] Upcoming Mesa releases

2012-05-03 Thread Ian Romanick
To keep in the habit of doing regular releases, I'd like to propose the following set of release dates. We had previously discussed doing stable releases monthly and feature releases every six months. This set of dates basically reflects that. I should be able to package up most of these, bu

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Mandeep Baines
2012/5/2 Kristian Høgsberg : > This new gbm entry point allows writing data into a gbm bo.  The bo has > to be created with the GBM_BO_USE_WRITE flag, and it's only required to > work for GBM_BO_USE_CURSOR_64X64 bos. > > The gbm API is designed to be the glue layer between EGL and KMS, but there >

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Ian Romanick
On 05/03/2012 11:49 AM, Chad Versace wrote: On 05/03/2012 08:42 AM, Ian Romanick wrote: On 05/02/2012 06:32 PM, Chad Versace wrote: Quick Solution for the Intel drivers A quick solution may be as simple as removing ARB_fbo from the Intel drivers' GLES1/2

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Chad Versace
On 05/03/2012 08:42 AM, Ian Romanick wrote: > On 05/02/2012 06:32 PM, Chad Versace wrote: >> Quick Solution for the Intel drivers >> >> >> A quick solution may be as simple as removing ARB_fbo from the Intel drivers' >> GLES1/2 extension lists. >> >> Do you see

Re: [Mesa-dev] [PATCH v2] i965: Fix mipmap offsets for HiZ and separate stencil buffers.

2012-05-03 Thread Kenneth Graunke
On 05/02/2012 02:48 PM, Paul Berry wrote: When rendering to a miplevel other than 0 within a color, depth, stencil, or HiZ buffer, we need to tell the GPU to render to an offset within the buffer, so that the data is written into the correct miplevel. We do this using a coarse offset (in pages),

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/03/2012 10:33 AM, Eric Anholt wrote: > On Wed, 02 May 2012 18:32:01 -0700, Chad Versace > wrote: >> Solutions for core Mesa >> --- >> >> As for fixing _mesa_BindFramebufferEXT, I have two ideas. >> >> 1. Enforce in _mesa_Bin

Re: [Mesa-dev] [PATCH 1/2] i965/Gen6: Work around GPU hangs due to misaligned depth coordinate offsets.

2012-05-03 Thread Chad Versace
On 04/26/2012 06:54 AM, Paul Berry wrote: > In i965 Gen6, Mesa has for a long time used the "depth coordinate > offset X/Y" settings (in 3DSTATE_DEPTH_BUFFER) to cause the GPU to > render to miplevels other than 0. Unfortunately, this doesn't work, > because these offsets must be aligned to multip

Re: [Mesa-dev] [PATCH v2] i965: Fix mipmap offsets for HiZ and separate stencil buffers.

2012-05-03 Thread Chad Versace
On 05/02/2012 02:48 PM, Paul Berry wrote: > When rendering to a miplevel other than 0 within a color, depth, > stencil, or HiZ buffer, we need to tell the GPU to render to an offset > within the buffer, so that the data is written into the correct > miplevel. We do this using a coarse offset (in p

Re: [Mesa-dev] [PATCH 1/2] i965/Gen6: Work around GPU hangs due to misaligned depth coordinate offsets.

2012-05-03 Thread Kenneth Graunke
On 04/26/2012 06:54 AM, Paul Berry wrote: In i965 Gen6, Mesa has for a long time used the "depth coordinate offset X/Y" settings (in 3DSTATE_DEPTH_BUFFER) to cause the GPU to render to miplevels other than 0. Unfortunately, this doesn't work, because these offsets must be aligned to multiples of

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Eric Anholt
On Wed, 02 May 2012 18:32:01 -0700, Chad Versace wrote: > Solutions for core Mesa > --- > > As for fixing _mesa_BindFramebufferEXT, I have two ideas. > > 1. Enforce in _mesa_BindFramebufferEXT that no more than one of ARB_fbo >and EXT_fbo is enabled, then clean up its va

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Jakob Bornecrantz
- Ursprungligt meddelande - > This new gbm entry point allows writing data into a gbm bo. The bo > has to be created with the GBM_BO_USE_WRITE flag, and it's only > required to work for GBM_BO_USE_CURSOR_64X64 bos. > > The gbm API is designed to be the glue layer between EGL and KMS, but

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Jakob Bornecrantz
- Ursprungligt meddelande - > On Thu, May 3, 2012 at 7:47 AM, Jakob Bornecrantz > wrote: > > Hi Kristian, > > > > s/gbm_bo_write/gbm_bo_write_to_cursor/g and make fail on anything > > other then cursors and I'm happy. Not making it just happen > > to work on some hardware really sucks for

Re: [Mesa-dev] [PATCH 1/6] Scaffolding for ARB_shader_bit_encoding.

2012-05-03 Thread Ian Romanick
On 05/02/2012 02:42 PM, Olivier Galibert wrote: On Wed, May 02, 2012 at 02:17:31PM -0700, Ian Romanick wrote: I've been trying to keep this list alphabetized. Ok. + if (ctx->Const.NativeIntegers) { + ctx->Extensions.ARB_shader_bit_encoding = GL_TRUE; + } + Is this actually true?

Re: [Mesa-dev] [PATCH] egl_dri2: Fix out of tree builds with the wayland backend enabled

2012-05-03 Thread Kristian Høgsberg
On Wed, May 02, 2012 at 07:04:57PM -0400, Robert Hooker wrote: > Otherwise it fails like so: > > CC egl_dri2.lo > In file included from egl_dri2.h:40:0, > from egl_dri2.c:42: > ../../../../../../src/egl/wayland/wayland-drm/wayland-drm.h:8:41: > fatal error: wayland-drm-serve

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Ian Romanick
On 05/02/2012 06:32 PM, Chad Versace wrote: Mesa has problems in the way it implements glBindFramebuffer and glBindFramebufferEXT due to both being implemented by an overloaded _mesa_BindFramebufferEXT. This problem causes an Android app [1] to crash, and I want your opinion on how we should fix

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Kristian Høgsberg
On Thu, May 3, 2012 at 7:47 AM, Jakob Bornecrantz wrote: > Hi Kristian, > > s/gbm_bo_write/gbm_bo_write_to_cursor/g and make fail on anything > other then cursors and I'm happy. Not making it just happen > to work on some hardware really sucks for those that it doesn't > work on because people wil

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Kristian Høgsberg
On Thu, May 3, 2012 at 7:05 AM, Ander Conselvan de Oliveira wrote: > I did a simple test here and the patch worked. I have just a couple of > comments. Good points, patch updated. Kristian > On 05/02/2012 10:32 PM, Kristian Høgsberg wrote: >> >> This new gbm entry point allows writing data into

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Brian Paul
On 05/03/2012 04:36 AM, Marek Olšák wrote: On Thu, May 3, 2012 at 3:32 AM, Chad Versace wrote: (FYI, if I understand the gallium code, the only drivers that currently enable both are Intel, swrast, and OSMesa). Gallium also enables both if packed depth-stencil textures are supported (w

Re: [Mesa-dev] Cannot build mesa with wayland from the 0.85 branch

2012-05-03 Thread Sven Joachim
On 2012-05-03 07:20 +0200, Sven Joachim wrote: > Building the wayland backend in mesa with wayland from the 0.85 branch > fails: > > , > | make[5]: Entering directory > `/usr/local/src/deb-src/mesa/mesa/build/dri/src/gallium/state_trackers/egl' > | gcc -c -I. -I../../../../src/gallium/include

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Jakob Bornecrantz
Hi Kristian, s/gbm_bo_write/gbm_bo_write_to_cursor/g and make fail on anything other then cursors and I'm happy. Not making it just happen to work on some hardware really sucks for those that it doesn't work on because people will expect it to work. Cheers, Jakob. - Original Message - >

Re: [Mesa-dev] [PATCH] gbm: Add gbm_bo_write entry point

2012-05-03 Thread Ander Conselvan de Oliveira
I did a simple test here and the patch worked. I have just a couple of comments. On 05/02/2012 10:32 PM, Kristian Høgsberg wrote: This new gbm entry point allows writing data into a gbm bo. The bo has to be created with the GBM_BO_USE_WRITE flag, and it's only required to work for GBM_BO_USE_C

Re: [Mesa-dev] Conflicts between OES/EXT/ARB_framebuffer_object and GL3.0/GLES2

2012-05-03 Thread Marek Olšák
On Thu, May 3, 2012 at 3:32 AM, Chad Versace wrote: >   (FYI, if I understand the gallium code, the only drivers that currently >   enable both are Intel, swrast, and OSMesa). Gallium also enables both if packed depth-stencil textures are supported (which is the case with most, if not all, driver

[Mesa-dev] libGL.so.* are not installed when configured with "--enable-xlib-glx"

2012-05-03 Thread Sven Joachim
When configuring mesa git master with "--enable-xlib-glx", the GL library does not get installed. I configured mesa like this: , | % ./configure --enable-xlib-glx --without-gallium-drivers \ | --without-dri-drivers --disable-egl --prefix=/tmp/mesa ` and after running make, have the foll