Re: [Mesa-dev] [PATCH] mesa: re-implement unpacking of DEPTH_COMPONENT32F

2011-11-22 Thread Kai Wasserbäch
Dear Marek,
Marek Olšák schrieb am 22.11.2011 21:07:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43122
> ---
>  src/mesa/main/format_unpack.c |   10 ++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> [...]

I saw your patch and as I reported the referenced bug, I went ahead and test
this: thanks for the fix.

Tested-by: Kai Wasserbäch 

Kind regards,
Kai Wasserbäch



-- 

Kai Wasserbäch (Kai Wasserbaech)

E-Mail: k...@dev.carbon-project.org



signature.asc
Description: OpenPGP digital signature
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: re-implement unpacking of DEPTH_COMPONENT32F

2011-11-22 Thread Eric Anholt
On Tue, 22 Nov 2011 21:43:53 +0100, Marek Olšák  wrote:
> On Tue, Nov 22, 2011 at 9:13 PM, Patrick Baggett
>  wrote:
> >
> >
> > On Tue, Nov 22, 2011 at 2:07 PM, Marek Olšák  wrote:
> >>
> >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43122
> >> ---
> >>  src/mesa/main/format_unpack.c |   10 ++
> >>  1 files changed, 10 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
> >> index 6e2ce7a..52f224a 100644
> >> --- a/src/mesa/main/format_unpack.c
> >> +++ b/src/mesa/main/format_unpack.c
> >> @@ -1751,6 +1751,13 @@ unpack_float_z_Z32(GLuint n, const void *src,
> >> GLfloat *dst)
> >>  }
> >>
> >>  static void
> >> +unpack_float_z_Z32F(GLuint n, const void *src, GLfloat *dst)
> >> +{
> >> +   const GLfloat *s = ((const GLfloat *) src);
> >> +   memcpy(dst, s, n * sizeof(float));
> >> +}
> >
> > Why bother typecasting here in a separate variable 's'?
> 
> That's a copy-paste typo. I'll remove it.

Thanks.  With that fixed,

Reviewed-by: Eric Anholt 


pgpYRZPLZ72RA.pgp
Description: PGP signature
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: re-implement unpacking of DEPTH_COMPONENT32F

2011-11-22 Thread Marek Olšák
On Tue, Nov 22, 2011 at 9:13 PM, Patrick Baggett
 wrote:
>
>
> On Tue, Nov 22, 2011 at 2:07 PM, Marek Olšák  wrote:
>>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43122
>> ---
>>  src/mesa/main/format_unpack.c |   10 ++
>>  1 files changed, 10 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
>> index 6e2ce7a..52f224a 100644
>> --- a/src/mesa/main/format_unpack.c
>> +++ b/src/mesa/main/format_unpack.c
>> @@ -1751,6 +1751,13 @@ unpack_float_z_Z32(GLuint n, const void *src,
>> GLfloat *dst)
>>  }
>>
>>  static void
>> +unpack_float_z_Z32F(GLuint n, const void *src, GLfloat *dst)
>> +{
>> +   const GLfloat *s = ((const GLfloat *) src);
>> +   memcpy(dst, s, n * sizeof(float));
>> +}
>
> Why bother typecasting here in a separate variable 's'?

That's a copy-paste typo. I'll remove it.

Marek
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: re-implement unpacking of DEPTH_COMPONENT32F

2011-11-22 Thread Patrick Baggett
On Tue, Nov 22, 2011 at 2:07 PM, Marek Olšák  wrote:

> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43122
> ---
>  src/mesa/main/format_unpack.c |   10 ++
>  1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
> index 6e2ce7a..52f224a 100644
> --- a/src/mesa/main/format_unpack.c
> +++ b/src/mesa/main/format_unpack.c
> @@ -1751,6 +1751,13 @@ unpack_float_z_Z32(GLuint n, const void *src,
> GLfloat *dst)
>  }
>
>  static void
> +unpack_float_z_Z32F(GLuint n, const void *src, GLfloat *dst)
> +{
> +   const GLfloat *s = ((const GLfloat *) src);
> +   memcpy(dst, s, n * sizeof(float));
> +}
>

Why bother typecasting here in a separate variable 's'?



> +
> +static void
>  unpack_float_z_Z32X24S8(GLuint n, const void *src, GLfloat *dst)
>  {
>const GLfloat *s = ((const GLfloat *) src);
> @@ -1783,6 +1790,9 @@ _mesa_unpack_float_z_row(gl_format format, GLuint n,
>case MESA_FORMAT_Z32:
>   unpack = unpack_float_z_Z32;
>   break;
> +   case MESA_FORMAT_Z32_FLOAT:
> +  unpack = unpack_float_z_Z32F;
> +  break;
>case MESA_FORMAT_Z32_FLOAT_X24S8:
>   unpack = unpack_float_z_Z32X24S8;
>   break;
> --
> 1.7.5.4
>
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev