This commit results in garbage output for r600g when building with
OpenGL (not ES) as enabled by my patches:
https://github.com/Zoxc/weston/commits/gl-rebase. (--enable-opengl on
configure)
It works on i965 so I was wondering how well tested this is on Gallium drivers?
On Fri, Mar 7, 2014 at 7:05
I don't have commit access and would like to see this series merged.
On Sat, Apr 26, 2014 at 4:25 PM, John Kåre Alsaker
wrote:
> ---
> docs/specs/MESA_image_sRGB.spec | 155
>
> 1 file changed, 155 insertions(+)
> create mo
---
src/gallium/include/state_tracker/st_api.h | 1 +
src/gallium/state_trackers/dri/common/dri_screen.c | 1 +
src/gallium/state_trackers/dri/common/dri_screen.h | 1 +
src/gallium/state_trackers/dri/drm/dri2.c | 42 --
src/mesa/state_tracker/st_manager.c
---
src/mesa/drivers/dri/i965/intel_screen.c | 46 ++--
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c
b/src/mesa/drivers/dri/i965/intel_screen.c
index 8cb1260..bfa93c6 100644
--- a/src/mesa/drivers/dri/i965/inte
duplicateImage will allow you to create a linear or sRGB view into a
DRIimage you have access to. This is useful because compositors may want
a specific view which doesn't correspond to the one used by
applications.
---
include/GL/internal/dri_interface.h | 20 +++-
1 file changed,
This gives applications access to use DRIimage.duplicateImage to create
sRGB and linear views from EGL images.
---
include/EGL/eglmesaext.h| 7 ++
src/egl/drivers/dri2/egl_dri2.c | 201 +++-
src/egl/drivers/dri2/egl_dri2.h | 11 +-
src
--- /dev/null
+++ b/docs/specs/MESA_image_sRGB.spec
@@ -0,0 +1,155 @@
+Name
+
+MESA_image_sRGB
+
+Name Strings
+
+EGL_MESA_image_sRGB
+
+Contact
+
+John Kåre Alsaker
+
+Status
+
+Complete
+
+Version
+
+Version 3, March 3, 2013
+
+Number
+
+EGL Extension #not assigned
---
src/mapi/glapi/gen/gl_table.py | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py
index fd38468..d4075ff 100644
--- a/src/mapi/glapi/gen/gl_table.py
+++ b/src/mapi/glapi/gen/gl_table.py
@@ -101,10 +
On Sun, Mar 3, 2013 at 4:43 PM, Jakob Bornecrantz wrote:
> These really should just be another set of formats, since that is
> how they are handled gallium anyways.
I think I was going that route, but changed by mind for some reason.
Probably because I didn't want to add lots of sRGB formats and
On Sun, Mar 3, 2013 at 4:52 PM, Jakob Bornecrantz wrote:
> Have you tested if this actually works? I would guess it would
> render in the right colorspace but for sampling the state tracker
> might just drop the format on the floor.
It works for sampling, but I'm not sure what the current or desir
duplicateImage will allow you to create a linear or sRGB view into a
DRIimage you have access to. This is useful because compositors may want
a specific view which doesn't correspond to the one used by
applications.
---
include/GL/internal/dri_interface.h | 20 +++-
1 file changed,
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ *John Kåre Alsaker
+ *Kristian Høgsberg
+ */
+
+/** @file egl-mesa-image-srgb.c
+ *
+ * Test EGL_MESA_image_sRGB
+ */
+
+#include "piglit-util-gl-common.h&quo
This gives applications access to use DRIimage.duplicateImage to create
sRGB and linear views from EGL images.
---
include/EGL/eglmesaext.h| 7 ++
src/egl/drivers/dri2/egl_dri2.c | 168
src/egl/drivers/dri2/egl_dri2.h | 6 +-
src
---
src/gallium/include/state_tracker/st_api.h | 1 +
src/gallium/state_trackers/dri/common/dri_screen.c | 1 +
src/gallium/state_trackers/dri/common/dri_screen.h | 1 +
src/gallium/state_trackers/dri/drm/dri2.c | 39 +-
src/mesa/state_tracker/st_manager.c
duplicateImage will allow you to create a linear or sRGB view into a DRIimage
you have access to.
This is useful because compositors may want a specific view which doesn't
correspond to the one used by applications.
---
include/GL/internal/dri_interface.h | 21 -
1 file chang
/docs/MESA_image_sRGB.spec
@@ -0,0 +1,155 @@
+Name
+
+MESA_image_sRGB
+
+Name Strings
+
+EGL_MESA_image_sRGB
+
+Contact
+
+John Kåre Alsaker
+
+Status
+
+Complete
+
+Version
+
+Version 2, February 23, 2013
+
+Number
+
+EGL Extension #not assigned
+
+Dependencies
+
+EGL 1.2
On Fri, Mar 1, 2013 at 10:01 PM, Ian Romanick wrote:
> On 02/27/2013 10:19 PM, John Kåre Alsaker wrote:
>>
>> On Mon, Feb 25, 2013 at 8:55 PM, Ian Romanick wrote:
>>>
>>> Also... are there piglit tests coming?
>>
>> Not unless you convince me other
On Mon, Feb 25, 2013 at 8:55 PM, Ian Romanick wrote:
> Also... are there piglit tests coming?
Not unless you convince me otherwise. I don't think I'll be able to
verify that said tests work however.
> More recent versions of the spec template include a section for describing
> conformance tests.
/MESA_image_sRGB.spec b/docs/MESA_image_sRGB.spec
new file mode 100644
index 000..f8a0bea
--- /dev/null
+++ b/docs/MESA_image_sRGB.spec
@@ -0,0 +1,132 @@
+Name
+
+MESA_image_sRGB
+
+Name Strings
+
+EGL_MESA_image_sRGB
+
+Contact
+
+John Kåre Alsaker
+
+Status
+
+Complete
---
src/gallium/include/state_tracker/st_api.h | 1 +
src/gallium/state_trackers/dri/common/dri_screen.c | 1 +
src/gallium/state_trackers/dri/common/dri_screen.h | 1 +
src/gallium/state_trackers/dri/drm/dri2.c | 39 +-
src/mesa/state_tracker/st_manager.c
duplicateImage will allow you to create a linear or sRGB view into a DRIimage
you have access to.
This is useful because compositors may want a specific view which doesn't
correspond to the one used by applications.
---
include/GL/internal/dri_interface.h | 21 -
1 file chang
I'd still like to have this applied.
On Tue, Dec 18, 2012 at 3:16 PM, John Kåre Alsaker
wrote:
> On Tue, Dec 18, 2012 at 11:20 AM, Jose Fonseca wrote:
>> Looks fine.
>>
>> I'm curious, what does this fix in practice?
> It fixes Weston crashing when r
On Tue, Dec 18, 2012 at 11:20 AM, Jose Fonseca wrote:
> Looks fine.
>
> I'm curious, what does this fix in practice?
It fixes Weston crashing when running with llvmpipe.
>
> Jose
>
> - Original Message -
>> NOTE: This is a candidate for the stable branches.
>> ---
>> src/gallium/drivers/
NOTE: This is a candidate for the stable branches.
---
src/gallium/drivers/llvmpipe/lp_texture.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index 2e9c6bf..f17a04a 100644
--- a/src/gal
NOTE: This is a candidate for the stable branches.
---
src/gallium/drivers/llvmpipe/lp_texture.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index b4ea94c..ccea4e2 100644
--- a/src/gal
---
src/gallium/auxiliary/util/u_debug.h | 2 +-
src/gallium/include/pipe/p_compiler.h | 12
src/mapi/glapi/gen/gl_table.py| 14 +-
3 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/
It just fixes posterization when rendering in linear space. It's also
required for having 64 bpp Wayland clients.
On Thu, Oct 11, 2012 at 2:18 AM, Brian Paul wrote:
> On Mon, Oct 8, 2012 at 4:50 PM, John Kåre Alsaker
> wrote:
>> ---
>> src/gallium/drivers/svga/svga_form
ntact
John Kåre Alsaker
Status
Proposal
Version
Version 1, October 9, 2012
Number
EGL Extension #not assigned
Dependencies
EGL 1.2 or later is required.
EGL_KHR_image_base is required.
This extension is written against the wording of the EGL 1.2
specific
---
src/gallium/drivers/svga/svga_format.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_format.c
b/src/gallium/drivers/svga/svga_format.c
index 5176106..5a153a8 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
On Fri, Oct 5, 2012 at 12:41 AM, Eric Anholt wrote:
> John Kåre Alsaker writes:
>
>> I would like add support for sRGB KHR images to EGL. This is primarily
>> so Wayland compositors can create sRGB views of client buffers, but
>> there's nothing preventing it fro
---
include/EGL/eglmesaext.h| 7 +++
src/egl/drivers/dri2/egl_dri2.c | 32 +++-
src/egl/drivers/dri2/platform_android.c | 16 ++--
src/egl/drivers/dri2/platform_drm.c | 11 +++
src/egl/drivers/dri2/platform_wayland.c
---
src/gallium/include/state_tracker/st_api.h | 1 +
src/gallium/state_trackers/dri/common/dri_screen.c | 1 +
src/gallium/state_trackers/dri/common/dri_screen.h | 1 +
src/gallium/state_trackers/dri/drm/dri2.c | 32 +-
src/mesa/state_tracker/st_manager.c
---
include/GL/internal/dri_interface.h | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/include/GL/internal/dri_interface.h
b/include/GL/internal/dri_interface.h
index 1e0f1d0..669c7d9 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/intern
I would like add support for sRGB KHR images to EGL. This is primarily
so Wayland compositors can create sRGB views of client buffers, but
there's nothing preventing it from being useful in other cases.
To allow this I propose a new EGL attribute which can be passed to
eglCreateImageKHR, EGL_GAMMA
lable and limited to 8 bpc.
On Thu, Sep 27, 2012 at 8:57 PM, John Kåre Alsaker
wrote:
> I failed to consider that premultiplied sRGB color channels can be
> stored two ways. The friendly way, to_srgb_gamma(color * alpha) and
> what applications actually use, to_srgb_gamma(color) * alpha
ebuffer, but you can't set it.
>
> You could also take a look at
> http://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.txt to see how
> this was handled for GLX and WGL.
This is done similarly with a capability flag in GLX/WGL, but with the
surface attribute moved in
glean/readPixSanity is failing. Depth and stencil buffers are read
back wrong, while RGBA is fine.
On 9/25/12, Brian Paul wrote:
> On 09/24/2012 11:09 PM, John Kåre Alsaker wrote:
>> On Mon, Sep 24, 2012 at 5:22 PM, Brian Paul > <mailto:bri...@vmware.com>> wrote:
>>
&g
framebuffer as an sRGB texture. EGL_GAMMA_SRGB_BIT
could also optionally be disabled when the format is not supported as
an sRGB texture by the hardware.
On Wed, Sep 26, 2012 at 10:19 AM, John Kåre Alsaker
wrote:
> The way this would interact with ARB_framebuffer_sRGB is that the
> EGL
The way this would interact with ARB_framebuffer_sRGB is that the
EGL's surface EGL_GAMMA attribute would be ignored. If a EGL config
has the EGL_GAMMA_SRGB_BIT, it is required to support sRGB for the
default OpenGL framebuffer.
On Tue, Sep 25, 2012 at 5:58 PM, John Kåre Alsaker
wrote:
&g
Hello,
I would like add support for sRGB framebuffers to EGL. Here are my
proposed changes to EGL:
A new EGL_SURFACE_TYPE bit:
EGL_GAMMA_SRGB_BIT - This format supports sRGB framebuffers. This also
means that ARB_framebuffer_sRGB is supported for this format.
New values:
EGL_GAMMA_LINEAR - The g
On Mon, Sep 24, 2012 at 5:22 PM, Brian Paul wrote:
> On 09/23/2012 05:44 AM, John Kåre Alsaker wrote:
>
>> ---
>> src/gallium/drivers/svga/svga_resource_texture.c | 8
>> 1 file changed, 8 deletions(-)
>>
>> diff --git a/src/gallium/drivers/s
---
src/gallium/drivers/svga/svga_resource_texture.c | 8
1 file changed, 8 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c
b/src/gallium/drivers/svga/svga_resource_texture.c
index 9830e79..97ec7ee 100644
--- a/src/gallium/drivers/svga/svga_resource_texture.c
---
src/gallium/drivers/llvmpipe/lp_texture.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index 841df00..df4417f 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/galliu
---
src/gallium/state_trackers/gbm/gbm_drm.c | 44 +---
1 file changed, 29 insertions(+), 15 deletions(-)
diff --git a/src/gallium/state_trackers/gbm/gbm_drm.c
b/src/gallium/state_trackers/gbm/gbm_drm.c
index 8490480..9f2cfe8 100644
--- a/src/gallium/state_trackers/gb
---
src/gbm/backends/dri/gbm_dri.c | 4
1 file changed, 4 deletions(-)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index d8b1cc7..84c6de3 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -277,10 +277,8 @@ gbm_dri_is_format_s
---
src/gbm/main/gbm.h | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
index 32211a7..1bc4740 100644
--- a/src/gbm/main/gbm.h
+++ b/src/gbm/main/gbm.h
@@ -68,19 +68,13 @@ union gbm_bo_handle {
uint64_t u64;
};
-/** Forma
---
src/gbm/main/gbm.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
index 9d2a030..32211a7 100644
--- a/src/gbm/main/gbm.h
+++ b/src/gbm/main/gbm.h
@@ -127,6 +127,9 @@ enum gbm_bo_format {
#define GBM_FORMAT_RGBA__gbm_fourcc_code('R', 'A',
47 matches
Mail list logo