All of lore.kernel.org
 help / color / mirror / Atom feed
* [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
@ 2010-01-06 16:34 Sedat Dilek
  2010-01-06 17:07 ` [Mesa3d-dev] " Brian Paul
  0 siblings, 1 reply; 9+ messages in thread
From: Sedat Dilek @ 2010-01-06 16:34 UTC (permalink / raw)
  To: mesa3d-dev, DRI

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

Hi,

this patch fixes a build-error in mesa GIT master after...

commit	251363e8f1287b54dc7734e690daf2ae96728faf (patch)
"configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"

>From my build-log:
...
In file included from svga_pipe_fs.c:37:
svga_tgsi.h: In function 'svga_fs_key_size':
svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
make[4]: *** [svga_pipe_fs.o] Error 1

Might be introduced in...

commit	955f51270bb60ad77dba049799587dc7c0fb4dda
"Make sure we use only signed/unsigned ints with bitfields."

Kind Regars,
- Sedat -

[-- Attachment #2: 0001-svga-Fix-error-cannot-take-address-of-bit-field-text.patch --]
[-- Type: text/x-diff, Size: 1034 bytes --]

From 856679477f7350553ee983f9b2bd4ff73e86f1ac Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Wed, 6 Jan 2010 17:22:14 +0100
Subject: [PATCH] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

From build-log:
...
In file included from svga_pipe_fs.c:37:
svga_tgsi.h: In function 'svga_fs_key_size':
svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
make[4]: *** [svga_pipe_fs.o] Error 1
---
 src/gallium/drivers/svga/svga_tgsi.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h
index 1309c33..d49920d 100644
--- a/src/gallium/drivers/svga/svga_tgsi.h
+++ b/src/gallium/drivers/svga/svga_tgsi.h
@@ -56,7 +56,7 @@ struct svga_fs_compile_key
       unsigned compare_func:3;
       unsigned unnormalized:1;
       unsigned width_height_idx:7;
-      unsigned texture_target:8;
+      unsigned texture_target;
    } tex[PIPE_MAX_SAMPLERS];
 };
 
-- 
1.6.6


[-- Attachment #3: Type: text/plain, Size: 390 bytes --]

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 16:34 [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h Sedat Dilek
@ 2010-01-06 17:07 ` Brian Paul
  2010-01-06 17:09   ` Sedat Dilek
  2010-01-06 17:39   ` michal
  0 siblings, 2 replies; 9+ messages in thread
From: Brian Paul @ 2010-01-06 17:07 UTC (permalink / raw)
  To: sedat.dilek@gmail.com; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

Sedat Dilek wrote:
> Hi,
> 
> this patch fixes a build-error in mesa GIT master after...
> 
> commit	251363e8f1287b54dc7734e690daf2ae96728faf (patch)
> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
> 
>>From my build-log:
> ...
> In file included from svga_pipe_fs.c:37:
> svga_tgsi.h: In function 'svga_fs_key_size':
> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
> make[4]: *** [svga_pipe_fs.o] Error 1
> 
> Might be introduced in...
> 
> commit	955f51270bb60ad77dba049799587dc7c0fb4dda
> "Make sure we use only signed/unsigned ints with bitfields."
> 
> Kind Regars,
> - Sedat -
> 

I just fixed that.

-Brian

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:07 ` [Mesa3d-dev] " Brian Paul
@ 2010-01-06 17:09   ` Sedat Dilek
  2010-01-06 17:38     ` Keith Whitwell
  2010-01-06 17:38     ` Brian Paul
  2010-01-06 17:39   ` michal
  1 sibling, 2 replies; 9+ messages in thread
From: Sedat Dilek @ 2010-01-06 17:09 UTC (permalink / raw)
  To: Brian Paul; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

OK.

That's the next one :-)
...
In file included from r300_emit.c:36:
r300_state_inlines.h: In function ‘r300_translate_tex_filters’:
r300_state_inlines.h:263: error: ‘is_anisotropic’ undeclared (first
use in this function)
r300_state_inlines.h:263: error: (Each undeclared identifier is
reported only once
r300_state_inlines.h:263: error: for each function it appears in.)
make: *** [r300_emit.o] Error 1
...

I am having dinner, now

- Sedat -

On Wed, Jan 6, 2010 at 6:07 PM, Brian Paul <brianp@vmware.com> wrote:
> Sedat Dilek wrote:
>>
>> Hi,
>>
>> this patch fixes a build-error in mesa GIT master after...
>>
>> commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch)
>> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
>>
>>> From my build-log:
>>
>> ...
>> In file included from svga_pipe_fs.c:37:
>> svga_tgsi.h: In function 'svga_fs_key_size':
>> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
>> make[4]: *** [svga_pipe_fs.o] Error 1
>>
>> Might be introduced in...
>>
>> commit  955f51270bb60ad77dba049799587dc7c0fb4dda
>> "Make sure we use only signed/unsigned ints with bitfields."
>>
>> Kind Regars,
>> - Sedat -
>>
>
> I just fixed that.
>
> -Brian
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:09   ` Sedat Dilek
@ 2010-01-06 17:38     ` Keith Whitwell
  2010-01-06 17:38     ` Brian Paul
  1 sibling, 0 replies; 9+ messages in thread
From: Keith Whitwell @ 2010-01-06 17:38 UTC (permalink / raw)
  To: sedat.dilek@gmail.com; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

This looks like my fault.

It would be nice to have the r300 and nvidia drivers building by default
(eg on linux-debug builds), even if they don't create full drivers, so
that a single build can get greater coverage.

Keith

On Wed, 2010-01-06 at 09:09 -0800, Sedat Dilek wrote:
> OK.
> 
> That's the next one :-)
> ...
> In file included from r300_emit.c:36:
> r300_state_inlines.h: In function ‘r300_translate_tex_filters’:
> r300_state_inlines.h:263: error: ‘is_anisotropic’ undeclared (first
> use in this function)
> r300_state_inlines.h:263: error: (Each undeclared identifier is
> reported only once
> r300_state_inlines.h:263: error: for each function it appears in.)
> make: *** [r300_emit.o] Error 1
> ...
> 
> I am having dinner, now
> 
> - Sedat -
> 
> On Wed, Jan 6, 2010 at 6:07 PM, Brian Paul <brianp@vmware.com> wrote:
> > Sedat Dilek wrote:
> >>
> >> Hi,
> >>
> >> this patch fixes a build-error in mesa GIT master after...
> >>
> >> commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch)
> >> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
> >>
> >>> From my build-log:
> >>
> >> ...
> >> In file included from svga_pipe_fs.c:37:
> >> svga_tgsi.h: In function 'svga_fs_key_size':
> >> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
> >> make[4]: *** [svga_pipe_fs.o] Error 1
> >>
> >> Might be introduced in...
> >>
> >> commit  955f51270bb60ad77dba049799587dc7c0fb4dda
> >> "Make sure we use only signed/unsigned ints with bitfields."
> >>
> >> Kind Regars,
> >> - Sedat -
> >>
> >
> > I just fixed that.
> >
> > -Brian
> >
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> Mesa3d-dev mailing list
> Mesa3d-dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:09   ` Sedat Dilek
  2010-01-06 17:38     ` Keith Whitwell
@ 2010-01-06 17:38     ` Brian Paul
  2010-01-06 17:55       ` [Mesa3d-dev] " Sedat Dilek
  1 sibling, 1 reply; 9+ messages in thread
From: Brian Paul @ 2010-01-06 17:38 UTC (permalink / raw)
  To: sedat.dilek@gmail.com; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

r300_translate_tex_filters() was missing the is_anisotropic parameter. 
  I fixed that, but there may be other issues.  Looks like some of the 
r300 code isn't c99.

-Brian


Sedat Dilek wrote:
> OK.
> 
> That's the next one :-)
> ...
> In file included from r300_emit.c:36:
> r300_state_inlines.h: In function ‘r300_translate_tex_filters’:
> r300_state_inlines.h:263: error: ‘is_anisotropic’ undeclared (first
> use in this function)
> r300_state_inlines.h:263: error: (Each undeclared identifier is
> reported only once
> r300_state_inlines.h:263: error: for each function it appears in.)
> make: *** [r300_emit.o] Error 1
> ...
> 
> I am having dinner, now
> 
> - Sedat -
> 
> On Wed, Jan 6, 2010 at 6:07 PM, Brian Paul <brianp@vmware.com> wrote:
>> Sedat Dilek wrote:
>>> Hi,
>>>
>>> this patch fixes a build-error in mesa GIT master after...
>>>
>>> commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch)
>>> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
>>>
>>>> From my build-log:
>>> ...
>>> In file included from svga_pipe_fs.c:37:
>>> svga_tgsi.h: In function 'svga_fs_key_size':
>>> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
>>> make[4]: *** [svga_pipe_fs.o] Error 1
>>>
>>> Might be introduced in...
>>>
>>> commit  955f51270bb60ad77dba049799587dc7c0fb4dda
>>> "Make sure we use only signed/unsigned ints with bitfields."
>>>
>>> Kind Regars,
>>> - Sedat -
>>>
>> I just fixed that.
>>
>> -Brian
>>


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:07 ` [Mesa3d-dev] " Brian Paul
  2010-01-06 17:09   ` Sedat Dilek
@ 2010-01-06 17:39   ` michal
  2010-01-06 17:54     ` Sedat Dilek
  1 sibling, 1 reply; 9+ messages in thread
From: michal @ 2010-01-06 17:39 UTC (permalink / raw)
  To: Brian Paul; +Cc: sedat.dilek@gmail.com, DRI, mesa3d-dev@lists.sourceforge.net

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

Brian Paul wrote on 2010-01-06 18:07:
> Sedat Dilek wrote:
>   
>> Hi,
>>
>> this patch fixes a build-error in mesa GIT master after...
>>
>> commit	251363e8f1287b54dc7734e690daf2ae96728faf (patch)
>> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
>>
>> >From my build-log:
>> ...
>> In file included from svga_pipe_fs.c:37:
>> svga_tgsi.h: In function 'svga_fs_key_size':
>> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
>> make[4]: *** [svga_pipe_fs.o] Error 1
>>
>> Might be introduced in...
>>
>> commit	955f51270bb60ad77dba049799587dc7c0fb4dda
>> "Make sure we use only signed/unsigned ints with bitfields."
>>
>> Kind Regars,
>> - Sedat -
>>
>>     
>
> I just fixed that.
>
>   
Actually, we could go back to bitfields and fix broken svga_fs_key_size().

Attached a patch.

Can somebody review, test-build and commit?


[-- Attachment #2: 0001-svga-Fix-fs-key-size-computation-and-key-comparison.patch --]
[-- Type: text/plain, Size: 2038 bytes --]

>From 7321aef0dfc5bb160ec8a33d1d4e686419f2ed3d Mon Sep 17 00:00:00 2001
From: Michal Krol <michal@vmware.com>
Date: Wed, 6 Jan 2010 18:36:45 +0100
Subject: [PATCH] svga: Fix fs key size computation and key comparison.

This also allows us to have texture_target
back as a bitfield and save us a few bytes.
---
 src/gallium/drivers/svga/svga_state_fs.c |    9 +++++++--
 src/gallium/drivers/svga/svga_tgsi.h     |    5 ++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_state_fs.c b/src/gallium/drivers/svga/svga_state_fs.c
index 272d1dd..bba80a9 100644
--- a/src/gallium/drivers/svga/svga_state_fs.c
+++ b/src/gallium/drivers/svga/svga_state_fs.c
@@ -40,8 +40,13 @@
 static INLINE int compare_fs_keys( const struct svga_fs_compile_key *a,
                                    const struct svga_fs_compile_key *b )
 {
-   unsigned keysize = svga_fs_key_size( a );
-   return memcmp( a, b, keysize );
+   unsigned keysize_a = svga_fs_key_size( a );
+   unsigned keysize_b = svga_fs_key_size( b );
+
+   if (keysize_a != keysize_b) {
+      return (int)(keysize_a - keysize_b);
+   }
+   return memcmp( a, b, keysize_a );
 }
 
 
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h
index 043b991..737a221 100644
--- a/src/gallium/drivers/svga/svga_tgsi.h
+++ b/src/gallium/drivers/svga/svga_tgsi.h
@@ -56,7 +56,7 @@ struct svga_fs_compile_key
       unsigned compare_func:3;
       unsigned unnormalized:1;
       unsigned width_height_idx:7;
-      ubyte texture_target;
+      unsigned texture_target:8;
    } tex[PIPE_MAX_SAMPLERS];
 };
 
@@ -119,8 +119,7 @@ static INLINE unsigned svga_vs_key_size( const struct svga_vs_compile_key *key )
 
 static INLINE unsigned svga_fs_key_size( const struct svga_fs_compile_key *key )
 {
-   return (const char *)&key->tex[key->num_textures].texture_target -
-      (const char *)key;
+   return (const char *)&key->tex[key->num_textures] - (const char *)key;
 }
 
 struct svga_shader_result *
-- 
1.6.4.msysgit.0


[-- Attachment #3: Type: text/plain, Size: 390 bytes --]

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:39   ` michal
@ 2010-01-06 17:54     ` Sedat Dilek
  2010-01-08 14:34       ` michal
  0 siblings, 1 reply; 9+ messages in thread
From: Sedat Dilek @ 2010-01-06 17:54 UTC (permalink / raw)
  To: michal; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

Compile-tested OK.

- Sedat -

On Wed, Jan 6, 2010 at 6:39 PM, michal <michal@vmware.com> wrote:
> Brian Paul wrote on 2010-01-06 18:07:
>>
>> Sedat Dilek wrote:
>>
>>>
>>> Hi,
>>>
>>> this patch fixes a build-error in mesa GIT master after...
>>>
>>> commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch)
>>> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
>>>
>>> >From my build-log:
>>> ...
>>> In file included from svga_pipe_fs.c:37:
>>> svga_tgsi.h: In function 'svga_fs_key_size':
>>> svga_tgsi.h:122: error: cannot take address of bit-field 'texture_target'
>>> make[4]: *** [svga_pipe_fs.o] Error 1
>>>
>>> Might be introduced in...
>>>
>>> commit  955f51270bb60ad77dba049799587dc7c0fb4dda
>>> "Make sure we use only signed/unsigned ints with bitfields."
>>>
>>> Kind Regars,
>>> - Sedat -
>>>
>>>
>>
>> I just fixed that.
>>
>>
>
> Actually, we could go back to bitfields and fix broken svga_fs_key_size().
>
> Attached a patch.
>
> Can somebody review, test-build and commit?
>
>
> From 7321aef0dfc5bb160ec8a33d1d4e686419f2ed3d Mon Sep 17 00:00:00 2001
> From: Michal Krol <michal@vmware.com>
> Date: Wed, 6 Jan 2010 18:36:45 +0100
> Subject: [PATCH] svga: Fix fs key size computation and key comparison.
>
> This also allows us to have texture_target
> back as a bitfield and save us a few bytes.
> ---
>  src/gallium/drivers/svga/svga_state_fs.c |    9 +++++++--
>  src/gallium/drivers/svga/svga_tgsi.h     |    5 ++---
>  2 files changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/src/gallium/drivers/svga/svga_state_fs.c
> b/src/gallium/drivers/svga/svga_state_fs.c
> index 272d1dd..bba80a9 100644
> --- a/src/gallium/drivers/svga/svga_state_fs.c
> +++ b/src/gallium/drivers/svga/svga_state_fs.c
> @@ -40,8 +40,13 @@
>  static INLINE int compare_fs_keys( const struct svga_fs_compile_key *a,
>                                    const struct svga_fs_compile_key *b )
>  {
> -   unsigned keysize = svga_fs_key_size( a );
> -   return memcmp( a, b, keysize );
> +   unsigned keysize_a = svga_fs_key_size( a );
> +   unsigned keysize_b = svga_fs_key_size( b );
> +
> +   if (keysize_a != keysize_b) {
> +      return (int)(keysize_a - keysize_b);
> +   }
> +   return memcmp( a, b, keysize_a );
>  }
>
>
> diff --git a/src/gallium/drivers/svga/svga_tgsi.h
> b/src/gallium/drivers/svga/svga_tgsi.h
> index 043b991..737a221 100644
> --- a/src/gallium/drivers/svga/svga_tgsi.h
> +++ b/src/gallium/drivers/svga/svga_tgsi.h
> @@ -56,7 +56,7 @@ struct svga_fs_compile_key
>       unsigned compare_func:3;
>       unsigned unnormalized:1;
>       unsigned width_height_idx:7;
> -      ubyte texture_target;
> +      unsigned texture_target:8;
>    } tex[PIPE_MAX_SAMPLERS];
>  };
>
> @@ -119,8 +119,7 @@ static INLINE unsigned svga_vs_key_size( const struct
> svga_vs_compile_key *key )
>
>  static INLINE unsigned svga_fs_key_size( const struct svga_fs_compile_key
> *key )
>  {
> -   return (const char *)&key->tex[key->num_textures].texture_target -
> -      (const char *)key;
> +   return (const char *)&key->tex[key->num_textures] - (const char *)key;
>  }
>
>  struct svga_shader_result *
> --
> 1.6.4.msysgit.0
>
>
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:38     ` Brian Paul
@ 2010-01-06 17:55       ` Sedat Dilek
  0 siblings, 0 replies; 9+ messages in thread
From: Sedat Dilek @ 2010-01-06 17:55 UTC (permalink / raw)
  To: Brian Paul; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

Thanks, your patch fixed the problem.

- Sedat -

On Wed, Jan 6, 2010 at 6:38 PM, Brian Paul <brianp@vmware.com> wrote:
> r300_translate_tex_filters() was missing the is_anisotropic parameter.  I
> fixed that, but there may be other issues.  Looks like some of the r300 code
> isn't c99.
>
> -Brian
>
>
> Sedat Dilek wrote:
>>
>> OK.
>>
>> That's the next one :-)
>> ...
>> In file included from r300_emit.c:36:
>> r300_state_inlines.h: In function ‘r300_translate_tex_filters’:
>> r300_state_inlines.h:263: error: ‘is_anisotropic’ undeclared (first
>> use in this function)
>> r300_state_inlines.h:263: error: (Each undeclared identifier is
>> reported only once
>> r300_state_inlines.h:263: error: for each function it appears in.)
>> make: *** [r300_emit.o] Error 1
>> ...
>>
>> I am having dinner, now
>>
>> - Sedat -
>>
>> On Wed, Jan 6, 2010 at 6:07 PM, Brian Paul <brianp@vmware.com> wrote:
>>>
>>> Sedat Dilek wrote:
>>>>
>>>> Hi,
>>>>
>>>> this patch fixes a build-error in mesa GIT master after...
>>>>
>>>> commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch)
>>>> "configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster"
>>>>
>>>>> From my build-log:
>>>>
>>>> ...
>>>> In file included from svga_pipe_fs.c:37:
>>>> svga_tgsi.h: In function 'svga_fs_key_size':
>>>> svga_tgsi.h:122: error: cannot take address of bit-field
>>>> 'texture_target'
>>>> make[4]: *** [svga_pipe_fs.o] Error 1
>>>>
>>>> Might be introduced in...
>>>>
>>>> commit  955f51270bb60ad77dba049799587dc7c0fb4dda
>>>> "Make sure we use only signed/unsigned ints with bitfields."
>>>>
>>>> Kind Regars,
>>>> - Sedat -
>>>>
>>> I just fixed that.
>>>
>>> -Brian
>>>
>
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h
  2010-01-06 17:54     ` Sedat Dilek
@ 2010-01-08 14:34       ` michal
  0 siblings, 0 replies; 9+ messages in thread
From: michal @ 2010-01-08 14:34 UTC (permalink / raw)
  To: sedat.dilek@gmail.com; +Cc: DRI, mesa3d-dev@lists.sourceforge.net

Sedat Dilek wrote on 2010-01-06 18:54:
> Compile-tested OK.
>
>   
Thanks, commited.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-01-08 14:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 16:34 [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h Sedat Dilek
2010-01-06 17:07 ` [Mesa3d-dev] " Brian Paul
2010-01-06 17:09   ` Sedat Dilek
2010-01-06 17:38     ` Keith Whitwell
2010-01-06 17:38     ` Brian Paul
2010-01-06 17:55       ` [Mesa3d-dev] " Sedat Dilek
2010-01-06 17:39   ` michal
2010-01-06 17:54     ` Sedat Dilek
2010-01-08 14:34       ` michal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.