[Mesa-dev] [PATCH 2/3] gallium: add PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT

2012-12-22 Thread Christoph Bumiller
---
 src/gallium/docs/source/screen.rst   |3 +++
 src/gallium/include/pipe/p_defines.h |3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/gallium/docs/source/screen.rst 
b/src/gallium/docs/source/screen.rst
index f4750e5..aea7542 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -136,6 +136,9 @@ The integer capabilities:
   expected for a pointer returned by transfer_map if the resource is
   PIPE_BUFFER. In other words, the pointer returned by transfer_map is
   always aligned to this value.
+* ``PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT``: Describes the required
+  alignment for pipe_sampler_view::u.buf.first_element, in bytes.
+  If a driver does not support first/last_element, it should return 0.
 
 
 .. _pipe_capf:
diff --git a/src/gallium/include/pipe/p_defines.h 
b/src/gallium/include/pipe/p_defines.h
index 5c4ce8b..0af5069 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -492,7 +492,8 @@ enum pipe_cap {
PIPE_CAP_TEXTURE_MULTISAMPLE = 74,
PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT = 75,
PIPE_CAP_CUBE_MAP_ARRAY = 76,
-   PIPE_CAP_TEXTURE_BUFFER_OBJECTS = 77
+   PIPE_CAP_TEXTURE_BUFFER_OBJECTS = 77,
+   PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 78
 };
 
 /**
-- 
1.7.3.4

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


[Mesa-dev] [PATCH 1/3] mesa: implement GL_ARB_texture_buffer_range

2012-12-22 Thread Christoph Bumiller
v2: Record texObj.BufferSize as -1 in TexBuffer(non-Range) instead
of the buffer's current size so we know we always have to use the
full size of the buffer object (i.e. even if it changes without the
user calling TexBuffer again) for the texture.

Clarify invalid offset alignment error message.
---
 src/mapi/glapi/gen/ARB_texture_buffer_range.xml |   22 ++
 src/mapi/glapi/gen/Makefile.am  |1 +
 src/mapi/glapi/gen/gl_API.xml   |2 +
 src/mesa/main/context.c |1 +
 src/mesa/main/extensions.c  |1 +
 src/mesa/main/get.c |1 +
 src/mesa/main/get_hash_params.py|3 +
 src/mesa/main/mtypes.h  |6 ++
 src/mesa/main/teximage.c|   87 ++-
 src/mesa/main/teximage.h|4 +
 src/mesa/main/texparam.c|8 ++
 11 files changed, 117 insertions(+), 19 deletions(-)
 create mode 100644 src/mapi/glapi/gen/ARB_texture_buffer_range.xml

diff --git a/src/mapi/glapi/gen/ARB_texture_buffer_range.xml 
b/src/mapi/glapi/gen/ARB_texture_buffer_range.xml
new file mode 100644
index 000..2176c08
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_texture_buffer_range.xml
@@ -0,0 +1,22 @@
+?xml version=1.0?
+!DOCTYPE OpenGLAPI SYSTEM gl_API.dtd
+
+OpenGLAPI
+
+category name=GL_ARB_texture_buffer_range number=139
+
+enum name=TEXTURE_BUFFER_OFFSET  value=0x919D/
+enum name=TEXTURE_BUFFER_SIZEvalue=0x919E/
+enum name=TEXTURE_BUFFER_OFFSET_ALIGNMENTvalue=0x919F/
+
+function name=TexBufferRange offset=assign
+param name=target type=GLenum/
+param name=internalformat type=GLenum/
+param name=buffer type=GLuint/
+param name=offset type=GLintptr/
+param name=size type=GLsizeiptr/
+/function
+
+/category
+
+/OpenGLAPI
diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
index 13943e8..4de78dd 100644
--- a/src/mapi/glapi/gen/Makefile.am
+++ b/src/mapi/glapi/gen/Makefile.am
@@ -110,6 +110,7 @@ API_XML = \
ARB_seamless_cube_map.xml \
ARB_sync.xml \
ARB_texture_buffer_object.xml \
+   ARB_texture_buffer_range.xml \
ARB_texture_compression_rgtc.xml \
ARB_texture_float.xml \
ARB_texture_rg.xml \
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index a47316a..d0479f4 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -8151,6 +8151,8 @@
 
 xi:include href=ARB_texture_buffer_object.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
 
+xi:include href=ARB_texture_buffer_range.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
+
 xi:include href=ARB_texture_compression_rgtc.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
 
 xi:include href=ARB_texture_rg.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index fc2db12..6dfe454 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -563,6 +563,7 @@ _mesa_init_constants(struct gl_context *ctx)
ctx-Const.MaxTextureMaxAnisotropy = MAX_TEXTURE_MAX_ANISOTROPY;
ctx-Const.MaxTextureLodBias = MAX_TEXTURE_LOD_BIAS;
ctx-Const.MaxTextureBufferSize = 65536;
+   ctx-Const.TextureBufferOffsetAlignment = 1;
ctx-Const.MaxArrayLockSize = MAX_ARRAY_LOCK_SIZE;
ctx-Const.SubPixelBits = SUB_PIXEL_BITS;
ctx-Const.MinPointSize = MIN_POINT_SIZE;
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 98711b3..83ed196 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -128,6 +128,7 @@ static const struct extension extension_table[] = {
{ GL_ARB_texture_border_clamp,
o(ARB_texture_border_clamp),GLL,2000 },
{ GL_ARB_texture_buffer_object,   
o(ARB_texture_buffer_object),   GLC,2008 },
{ GL_ARB_texture_buffer_object_rgb32, 
o(ARB_texture_buffer_object_rgb32), GLC,2009 },
+   { GL_ARB_texture_buffer_range,
o(ARB_texture_buffer_range),GLC,2012 },
{ GL_ARB_texture_compression, o(dummy_true),  
GLL,2000 },
{ GL_ARB_texture_compression_rgtc,
o(ARB_texture_compression_rgtc),GL, 2004 },
{ GL_ARB_texture_cube_map,o(ARB_texture_cube_map),
GLL,1999 },
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 273a79f..ca67281 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -337,6 +337,7 @@ EXTRA_EXT(ARB_uniform_buffer_object);
 EXTRA_EXT(ARB_timer_query);
 EXTRA_EXT(ARB_map_buffer_alignment);
 EXTRA_EXT(ARB_texture_cube_map_array);
+EXTRA_EXT(ARB_texture_buffer_range);
 
 static const int
 

[Mesa-dev] [PATCH 3/3] st/mesa: add support for GL_ARB_texture_buffer_range

2012-12-22 Thread Christoph Bumiller
v2: Update to handle BufferSize being -1 and return a NULL sampler
view if the specified range would cause out of bounds access.
---
 src/mesa/state_tracker/st_atom_texture.c |   22 +-
 src/mesa/state_tracker/st_extensions.c   |6 ++
 2 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_texture.c 
b/src/mesa/state_tracker/st_atom_texture.c
index dba1d82..4b43b2a 100644
--- a/src/mesa/state_tracker/st_atom_texture.c
+++ b/src/mesa/state_tracker/st_atom_texture.c
@@ -152,7 +152,27 @@ st_create_texture_sampler_view_from_stobj(struct 
pipe_context *pipe,
u_sampler_view_default_template(templ,
stObj-pt,
format);
-   templ.u.tex.first_level = stObj-base.BaseLevel;
+
+   if (stObj-pt-target == PIPE_BUFFER) {
+  unsigned base, size;
+  unsigned f, n;
+  const struct util_format_description *desc
+ = util_format_description(templ.format);
+
+  base = stObj-base.BufferOffset;
+  if (base = stObj-pt-width0)
+ return NULL;
+  size = MIN2(stObj-pt-width0 - base, (unsigned)stObj-base.BufferSize);
+
+  f = ((base * 8) / desc-block.bits) * desc-block.width;
+  n = ((size * 8) / desc-block.bits) * desc-block.width;
+  if (!n)
+ return NULL;
+  templ.u.buf.first_element = f;
+  templ.u.buf.last_element  = f + (n - 1);
+   } else {
+  templ.u.tex.first_level = stObj-base.BaseLevel;
+   }
 
if (swizzle != SWIZZLE_NOOP) {
   templ.swizzle_r = GET_SWZ(swizzle, 0);
diff --git a/src/mesa/state_tracker/st_extensions.c 
b/src/mesa/state_tracker/st_extensions.c
index e7cf4f3..5011e97 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -673,7 +673,13 @@ void st_init_extensions(struct st_context *st)
   ctx-Extensions.ARB_map_buffer_alignment = GL_TRUE;
}
if (screen-get_param(screen, PIPE_CAP_TEXTURE_BUFFER_OBJECTS)) {
+  ctx-Const.TextureBufferOffsetAlignment =
+ screen-get_param(screen, PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT);
+
   ctx-Extensions.ARB_texture_buffer_object = GL_TRUE;
+  if (ctx-Const.TextureBufferOffsetAlignment)
+ ctx-Extensions.ARB_texture_buffer_range = GL_TRUE;
+
   init_format_extensions(st, tbo_rgb32, Elements(tbo_rgb32),
  PIPE_BUFFER, PIPE_BIND_SAMPLER_VIEW);
}
-- 
1.7.3.4

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


Re: [Mesa-dev] [RFC] Merge automake branch

2012-12-22 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 02:12:55 schrieb Michel Dänzer:
 On Sam, 2012-12-22 at 01:06 +0100, Johannes Obermayr wrote: 
  Am Samstag, 22. Dezember 2012, 00:31:16 schrieb Michel Dänzer:
   On Fre, 2012-12-21 at 22:43 +0100, Johannes Obermayr wrote: 
Am Freitag, 21. Dezember 2012, 16:48:59 schrieb Michel Dänzer:
 On Fre, 2012-12-21 at 06:31 +0100, Johannes Obermayr wrote: 
  
  Please pull the code from:
  git://github.com/jobermayr/mesa.git  branch: master
  
  To view it online:
  https://github.com/jobermayr/mesa
  
  Following changes since automake-gallium6:
  - link shared libgallium against some LLVM libs
  - drivers/radeon must be build shared to fix egl_gallium.so on 
  r600/radeonsi builds
  - radeonsi and clover/opencl can be built against LLVM 3.3 trunk
  - merged some commits
  - based on current git master
 
 Sounds good. Sorry to be the bearer of bad news again, but it fails to
 build --with-llvm-shared-libs:
 
 make[4]: Entering directory 
 `/home/daenzer/src/mesa-git/mesa/src/gallium/auxiliary'
 make[4]: *** No rule to make target `-lLLVM-3.2svn', needed by 
 `libgallium9.1.0.la'.  Stop.
 

Rebased automake branch.

Following improvements:

- add $(LLVM_LDFLAGS) to libgallium@VERSION@_la_LDFLAGS to find
-lLLVM-3.2svn in a non-default dir (should solve Michel's issue)
   
   libgallium builds now, thanks.
   
   
I am looking forward to get another to solve setback from Michel :-)
   
   libllvmradeon fails to build with hundreds of unresolved LLVM symbols,
   see below.
   
   
 CXXLD  libllvmradeon9.1.0.la
  snip
  
  rebased again:
  Added $(LLVM_LDFLAGS) to libllvmradeon@VERSION@_la_LDFLAGS - maybe enough
  
  Additionally added $(LLVM_LIBS), $(DLOPEN_LIBS) and $(CLOCK_LIB) to 
  libllvmradeon@VERSION@_la_LIBADD
  - Please try whether these are really needed.
 
 $(LLVM_LIBS) and $(CLOCK_LIB) are needed for me, $(DLOPEN_LIBS) isn't.
 
 
 Thanks,
 

Rebased it again.

Removed $(DLOPEN_LIBS) - we should add it again if sb. really needs it.

Merged targets/pipe-loader v3 and v4 to benefit at the right place:
https://github.com/jobermayr/mesa/commit/67abcf095a111d35ecb21d5da100f7a7b1b6bc22

Matt, you should be able to merge it to master now. :-)
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH] mesa: implement GL_ARB_texture_buffer_range (v3)

2012-12-22 Thread Christoph Bumiller
v2: Record texObj.BufferSize as -1 in TexBuffer(non-Range) instead
of the buffer's current size so we know we always have to use the
full size of the buffer object (i.e. even if it changes without the
user calling TexBuffer again) for the texture.

Clarify invalid offset alignment error message.

v3: Use extra GL_CORE-only section in get_hash_params.py for
TEXTURE_BUFFER_OFFSET_ALIGNMENT.
---
 src/mapi/glapi/gen/ARB_texture_buffer_range.xml |   22 ++
 src/mapi/glapi/gen/Makefile.am  |1 +
 src/mapi/glapi/gen/gl_API.xml   |2 +
 src/mesa/main/context.c |1 +
 src/mesa/main/extensions.c  |1 +
 src/mesa/main/get.c |1 +
 src/mesa/main/get_hash_params.py|6 ++
 src/mesa/main/mtypes.h  |6 ++
 src/mesa/main/teximage.c|   87 ++-
 src/mesa/main/teximage.h|4 +
 src/mesa/main/texparam.c|8 ++
 11 files changed, 120 insertions(+), 19 deletions(-)
 create mode 100644 src/mapi/glapi/gen/ARB_texture_buffer_range.xml

diff --git a/src/mapi/glapi/gen/ARB_texture_buffer_range.xml 
b/src/mapi/glapi/gen/ARB_texture_buffer_range.xml
new file mode 100644
index 000..2176c08
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_texture_buffer_range.xml
@@ -0,0 +1,22 @@
+?xml version=1.0?
+!DOCTYPE OpenGLAPI SYSTEM gl_API.dtd
+
+OpenGLAPI
+
+category name=GL_ARB_texture_buffer_range number=139
+
+enum name=TEXTURE_BUFFER_OFFSET  value=0x919D/
+enum name=TEXTURE_BUFFER_SIZEvalue=0x919E/
+enum name=TEXTURE_BUFFER_OFFSET_ALIGNMENTvalue=0x919F/
+
+function name=TexBufferRange offset=assign
+param name=target type=GLenum/
+param name=internalformat type=GLenum/
+param name=buffer type=GLuint/
+param name=offset type=GLintptr/
+param name=size type=GLsizeiptr/
+/function
+
+/category
+
+/OpenGLAPI
diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
index 13943e8..4de78dd 100644
--- a/src/mapi/glapi/gen/Makefile.am
+++ b/src/mapi/glapi/gen/Makefile.am
@@ -110,6 +110,7 @@ API_XML = \
ARB_seamless_cube_map.xml \
ARB_sync.xml \
ARB_texture_buffer_object.xml \
+   ARB_texture_buffer_range.xml \
ARB_texture_compression_rgtc.xml \
ARB_texture_float.xml \
ARB_texture_rg.xml \
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index a47316a..d0479f4 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -8151,6 +8151,8 @@
 
 xi:include href=ARB_texture_buffer_object.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
 
+xi:include href=ARB_texture_buffer_range.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
+
 xi:include href=ARB_texture_compression_rgtc.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
 
 xi:include href=ARB_texture_rg.xml 
xmlns:xi=http://www.w3.org/2001/XInclude/
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index fc2db12..6dfe454 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -563,6 +563,7 @@ _mesa_init_constants(struct gl_context *ctx)
ctx-Const.MaxTextureMaxAnisotropy = MAX_TEXTURE_MAX_ANISOTROPY;
ctx-Const.MaxTextureLodBias = MAX_TEXTURE_LOD_BIAS;
ctx-Const.MaxTextureBufferSize = 65536;
+   ctx-Const.TextureBufferOffsetAlignment = 1;
ctx-Const.MaxArrayLockSize = MAX_ARRAY_LOCK_SIZE;
ctx-Const.SubPixelBits = SUB_PIXEL_BITS;
ctx-Const.MinPointSize = MIN_POINT_SIZE;
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 98711b3..83ed196 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -128,6 +128,7 @@ static const struct extension extension_table[] = {
{ GL_ARB_texture_border_clamp,
o(ARB_texture_border_clamp),GLL,2000 },
{ GL_ARB_texture_buffer_object,   
o(ARB_texture_buffer_object),   GLC,2008 },
{ GL_ARB_texture_buffer_object_rgb32, 
o(ARB_texture_buffer_object_rgb32), GLC,2009 },
+   { GL_ARB_texture_buffer_range,
o(ARB_texture_buffer_range),GLC,2012 },
{ GL_ARB_texture_compression, o(dummy_true),  
GLL,2000 },
{ GL_ARB_texture_compression_rgtc,
o(ARB_texture_compression_rgtc),GL, 2004 },
{ GL_ARB_texture_cube_map,o(ARB_texture_cube_map),
GLL,1999 },
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 273a79f..ca67281 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -337,6 +337,7 @@ EXTRA_EXT(ARB_uniform_buffer_object);
 EXTRA_EXT(ARB_timer_query);
 EXTRA_EXT(ARB_map_buffer_alignment);
 

[Mesa-dev] [PATCH] configure.ac: Save user {C,CXX}FLAGS and append them at end.

2012-12-22 Thread Johannes Obermayr
This way the user has the privilege of last decision and so the option to build 
an optimized debug build again.
---
 configure.ac |   14 --
 1 Datei geändert, 12 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

diff --git a/configure.ac b/configure.ac
index 759cbaa..d3d9d62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,12 @@ cygwin*)
 ;;
 esac
 
+dnl Save user {C,CXX}FLAGS
+USER_CFLAGS=$CFLAGS
+USER_CXXFLAGS=$CXXFLAGS
+CFLAGS=
+CXXFLAGS= 
+
 dnl Add flags for gcc and g++
 if test x$GCC = xyes; then
 case $host_os in
@@ -1985,6 +1991,8 @@ LDFLAGS=$_SAVE_LDFLAGS
 CPPFLAGS=$_SAVE_CPPFLAGS
 
 dnl Add user CFLAGS and CXXFLAGS
+cflags=$CFLAGS
+cxxflags=$CXXFLAGS
 CFLAGS=$CFLAGS $USER_CFLAGS
 CXXFLAGS=$CXXFLAGS $USER_CXXFLAGS
 
@@ -2224,14 +2232,16 @@ echo Shared-glapi:$enable_shared_glapi
 
 dnl Compiler options
 # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
-cflags=`echo $CFLAGS | \
+cflags=`echo $cflags | \
 $SED 's/^ *//;s/  */ /;s/ *$//'`
-cxxflags=`echo $CXXFLAGS | \
+cxxflags=`echo $cxxflags | \
 $SED 's/^ *//;s/  */ /;s/ *$//'`
 defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
 echo 
 echo CFLAGS:  $cflags
+echo USER_CFLAGS: $USER_CFLAGS
 echo CXXFLAGS:$cxxflags
+echo USER_CXXFLAGS:   $USER_CXXFLAGS
 echo Macros:  $defines
 echo 
 if test x$MESA_LLVM = x1; then
-- 
1.7.10.4

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


Re: [Mesa-dev] [PATCH] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2012-12-22 Thread Matt Turner
On Sat, Dec 22, 2012 at 9:16 AM, Johannes Obermayr
johannesoberm...@gmx.de wrote:
 This way the user has the privilege of last decision and so the option to 
 build an optimized debug build again.
 ---

You can just do CFLAGS=-g -O2 ./configure can't you?
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2012-12-22 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 09:21:33 schrieb Matt Turner:
 On Sat, Dec 22, 2012 at 9:16 AM, Johannes Obermayr
 johannesoberm...@gmx.de wrote:
  This way the user has the privilege of last decision and so the option to 
  build an optimized debug build again.
  ---
 
 You can just do CFLAGS=-g -O2 ./configure can't you?

Nope.

CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables -g' CFLAGS='-fmessage-length=0 -O2 
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
-fasynchronous-unwind-tables -g' ./autogen.sh --host=x86_64-suse-linux-gnu 
--build=x86_64-suse-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
--libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking 
--enable-xvmc --enable-vdpau --enable-texture-float --enable-debug 
--with-dri-drivers=i915,i965,nouveau,r200,radeon,swrast 
--with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast --enable-dri 
--enable-glx --enable-osmesa --enable-gles1 --enable-gles2 --enable-openvg 
--enable-shared-glapi --enable-shared-gallium --enable-gbm --enable-xa --ena
 ble-gallium-egl --enable-gallium-llvm --enable-gallium-gbm --enable-opencl 
--enable-r600-llvm-compiler --enable-gallium-g3dvl --enable-glx-tls

Resulting Makefile:
before:
CFLAGS = -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables -g -Wall -std=c99 
-Werror=implicit-function-declaration -Werror=missing-prototypes 
-fno-strict-aliasing -fno-builtin-memcmp -g -O0

after:
CFLAGS =  -Wall -std=c99 -Werror=implicit-function-declaration 
-Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -g -O0 
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables -g

You see configure CFLAGS and initial CFLAGS are vice versa.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 57173] sigsegv in Planeshift

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57173

--- Comment #6 from freedesk...@skewray.com ---
Created attachment 71985
  -- https://bugs.freedesktop.org/attachment.cgi?id=71985action=edit
Xorg.0.log

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 57173] sigsegv in Planeshift

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57173

--- Comment #7 from freedesk...@skewray.com ---
Created attachment 71986
  -- https://bugs.freedesktop.org/attachment.cgi?id=71986action=edit
dmesg

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 57173] sigsegv in Planeshift

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57173

--- Comment #8 from freedesk...@skewray.com ---
Created attachment 71987
  -- https://bugs.freedesktop.org/attachment.cgi?id=71987action=edit
glxinfo

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] mesa: implement GL_ARB_texture_buffer_range (v3)

2012-12-22 Thread Eric Anholt
Christoph Bumiller e0425...@student.tuwien.ac.at writes:

 v2: Record texObj.BufferSize as -1 in TexBuffer(non-Range) instead
 of the buffer's current size so we know we always have to use the
 full size of the buffer object (i.e. even if it changes without the
 user calling TexBuffer again) for the texture.

 Clarify invalid offset alignment error message.

 v3: Use extra GL_CORE-only section in get_hash_params.py for
 TEXTURE_BUFFER_OFFSET_ALIGNMENT.

I haven't seen any piglit tests for this -- how do we know it works?


pgp0r2QSmOrp9.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] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2012-12-22 Thread Dan Nicholson
On Sat, Dec 22, 2012 at 10:47 AM, Johannes Obermayr
johannesoberm...@gmx.de wrote:
 Am Samstag, 22. Dezember 2012, 09:21:33 schrieb Matt Turner:
 On Sat, Dec 22, 2012 at 9:16 AM, Johannes Obermayr
 johannesoberm...@gmx.de wrote:
  This way the user has the privilege of last decision and so the option to 
  build an optimized debug build again.
  ---

 You can just do CFLAGS=-g -O2 ./configure can't you?

 Nope.

 CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
 -funwind-tables -fasynchronous-unwind-tables -g' CFLAGS='-fmessage-length=0 
 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
 -fasynchronous-unwind-tables -g' ./autogen.sh --host=x86_64-suse-linux-gnu 
 --build=x86_64-suse-linux-gnu --program-prefix= --prefix=/usr 
 --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com 
 --mandir=/usr/share/man --infodir=/usr/share/info 
 --disable-dependency-tracking --enable-xvmc --enable-vdpau 
 --enable-texture-float --enable-debug 
 --with-dri-drivers=i915,i965,nouveau,r200,radeon,swrast 
 --with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast --enable-dri 
 --enable-glx --enable-osmesa --enable-gles1 --enable-gles2 --enable-openvg 
 --enable-shared-glapi --enable-shared-gallium --enable-gbm --enable-xa --e
 na
  ble-gallium-egl --enable-gallium-llvm --enable-gallium-gbm --enable-opencl 
 --enable-r600-llvm-compiler --enable-gallium-g3dvl --enable-glx-tls

 Resulting Makefile:
 before:
 CFLAGS = -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
 -funwind-tables -fasynchronous-unwind-tables -g -Wall -std=c99 
 -Werror=implicit-function-declaration -Werror=missing-prototypes 
 -fno-strict-aliasing -fno-builtin-memcmp -g -O0

 after:
 CFLAGS =  -Wall -std=c99 -Werror=implicit-function-declaration 
 -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -g -O0 
 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
 -funwind-tables -fasynchronous-unwind-tables -g

 You see configure CFLAGS and initial CFLAGS are vice versa.

The real fix here is not to have configure.ac touch CFLAGS at all like
any reasonable autotools project. That was an unfortunate shortcut
during the initial work. That would be a lot more effort, though.

However, the typical convention is that the user's CFLAGS come first
(see any automake COMPILE or LTCOMPILE definition), mostly so that any
user specified -I paths take precedence. That's unfortunate when -O
options to gcc are last one wins, but that's how things have typically
been. I would make this change very cautiously.

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


[Mesa-dev] [Bug 58665] New: Software rasterizer RGB swap

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=58665

  Priority: medium
Bug ID: 58665
  Assignee: mesa-dev@lists.freedesktop.org
   Summary: Software rasterizer RGB swap
  Severity: normal
Classification: Unclassified
OS: All
  Reporter: ste...@konink.de
  Hardware: Other
Status: NEW
   Version: 9.0
 Component: Other
   Product: Mesa

Created attachment 72004
  -- https://bugs.freedesktop.org/attachment.cgi?id=72004action=edit
Comparison between software rasterizer and nouveau_vieux

As in the attachment is shown, the software rasterizer seems to have a problem
on a big endian machine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 58665] Software rasterizer RGB swap

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=58665

Stefan de Konink ste...@konink.de changed:

   What|Removed |Added

  Attachment #72004|0   |1
is obsolete||

--- Comment #1 from Stefan de Konink ste...@konink.de ---
Created attachment 72005
  -- https://bugs.freedesktop.org/attachment.cgi?id=72005action=edit
Comparison between software rasterizer and nouveau_vieux

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev