Re: [Mesa-dev] sRGB in gallium

2011-02-10 Thread Alex Deucher
On Thu, Feb 10, 2011 at 9:17 AM, Roland Scheidegger wrote: > Am 10.02.2011 13:25, schrieb Henri Verbeet: >> On 10 February 2011 09:47, José Fonseca > Wouldn't it be >> easier/cleaner if sRGB sampling/rendering support was not >>> done through formats, but through enable/disable bits in >>> pipe_sa

Re: [Mesa-dev] sRGB in gallium

2011-02-10 Thread José Fonseca
On Thu, 2011-02-10 at 02:06 -0800, Christoph Bumiller wrote: > On 10.02.2011 09:47, José Fonseca wrote: > > On Wed, 2011-02-09 at 17:55 -0800, Dave Airlie wrote: > >> On Thu, Feb 10, 2011 at 11:27 AM, Marek Olšák wrote: > >>> In this case, we always use the corresponding linear format in > >>> cr

Re: [Mesa-dev] sRGB in gallium

2011-02-10 Thread Roland Scheidegger
Am 10.02.2011 13:25, schrieb Henri Verbeet: > On 10 February 2011 09:47, José Fonseca > Wouldn't it be > easier/cleaner if sRGB sampling/rendering support was not >> done through formats, but through enable/disable bits in >> pipe_sampler_view/pipe_rt_blend_state? >> > The issue with that is that s

Re: [Mesa-dev] sRGB in gallium (was: allow rendering to sRGB textures if EXT_fb_srgb is unsupported)

2011-02-10 Thread Henri Verbeet
On 10 February 2011 09:47, José Fonseca > Wouldn't it be easier/cleaner if sRGB sampling/rendering support was not > done through formats, but through enable/disable bits in > pipe_sampler_view/pipe_rt_blend_state? > The issue with that is that sRGB only really makes sense for the 8-bit RGBA format

Re: [Mesa-dev] sRGB in gallium

2011-02-10 Thread Christoph Bumiller
On 10.02.2011 09:47, José Fonseca wrote: > On Wed, 2011-02-09 at 17:55 -0800, Dave Airlie wrote: >> On Thu, Feb 10, 2011 at 11:27 AM, Marek Olšák wrote: >>> In this case, we always use the corresponding linear format in >>> create_surface, >>> therefore we should check for linear format support a

Re: [Mesa-dev] sRGB in gallium (was: allow rendering to sRGB textures if EXT_fb_srgb is unsupported)

2011-02-10 Thread Dave Airlie
On Thu, Feb 10, 2011 at 6:47 PM, José Fonseca wrote: > On Wed, 2011-02-09 at 17:55 -0800, Dave Airlie wrote: >> On Thu, Feb 10, 2011 at 11:27 AM, Marek Olšák wrote: >> > In this case, we always use the corresponding linear format in >> > create_surface, >> > therefore we should check for linear

[Mesa-dev] sRGB in gallium (was: allow rendering to sRGB textures if EXT_fb_srgb is unsupported)

2011-02-10 Thread José Fonseca
On Wed, 2011-02-09 at 17:55 -0800, Dave Airlie wrote: > On Thu, Feb 10, 2011 at 11:27 AM, Marek Olšák wrote: > > In this case, we always use the corresponding linear format in > > create_surface, > > therefore we should check for linear format support as well. > > Seems sane to me. > > Dave.