mesa.git
14 years agomesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queries
Brian Paul [Wed, 6 Jan 2010 04:24:48 +0000 (21:24 -0700)]
mesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queries

New in GL 3.0.

14 years agomesa: call _mesa_compute_version() to set context's version info
Brian Paul [Wed, 6 Jan 2010 04:23:59 +0000 (21:23 -0700)]
mesa: call _mesa_compute_version() to set context's version info

14 years agomesa: added version.c to build
Brian Paul [Wed, 6 Jan 2010 04:23:16 +0000 (21:23 -0700)]
mesa: added version.c to build

14 years agomesa: added _mesa_compute_version() in new version.c file
Brian Paul [Wed, 6 Jan 2010 04:23:01 +0000 (21:23 -0700)]
mesa: added _mesa_compute_version() in new version.c file

14 years agomesa: added version fields to GLcontext
Brian Paul [Wed, 6 Jan 2010 04:17:55 +0000 (21:17 -0700)]
mesa: added version fields to GLcontext

14 years agogallium/util: replace 8 with PIPE_MAX_COLOR_BUFS
Brian Paul [Wed, 6 Jan 2010 00:07:44 +0000 (17:07 -0700)]
gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS

14 years agogallium/util: comments and whitespace fixes
Brian Paul [Tue, 5 Jan 2010 23:55:35 +0000 (16:55 -0700)]
gallium/util: comments and whitespace fixes

14 years agodocs: added link to wiki page about missing Mesa features
Brian Paul [Tue, 5 Jan 2010 23:03:11 +0000 (16:03 -0700)]
docs: added link to wiki page about missing Mesa features

14 years agoi965g: fix invalid assertion in emit_xpd()
Brian Paul [Tue, 5 Jan 2010 22:53:46 +0000 (15:53 -0700)]
i965g: fix invalid assertion in emit_xpd()

Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>

14 years agoi965: Fix build after blind merge of mesa 7.7 by Brian.
Eric Anholt [Tue, 5 Jan 2010 19:07:54 +0000 (11:07 -0800)]
i965: Fix build after blind merge of mesa 7.7 by Brian.

14 years agonouveau: rewrite nouveau_stateobj to use BEGIN_RING properly
Maarten Maathuis [Tue, 29 Dec 2009 22:59:08 +0000 (23:59 +0100)]
nouveau: rewrite nouveau_stateobj to use BEGIN_RING properly

- The previous solution was hacky and didn't do subchannel autobinding.
- The beheaviour should match what libdrm_nouveau does closely.
- The solution remains statically sized, but when debugging is on it will check
for abuse.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
14 years agonouveau: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etc
Marcin Slusarz [Mon, 28 Dec 2009 23:36:17 +0000 (00:36 +0100)]
nouveau: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etc

14 years agonv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
Maarten Maathuis [Sun, 20 Dec 2009 11:19:19 +0000 (12:19 +0100)]
nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped

- This avoids problematic "reloc'ed while mapped" messages and
some associated corruption as well.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
14 years agoMerge branch 'gallium-docs'
Corbin Simpson [Tue, 5 Jan 2010 16:37:49 +0000 (08:37 -0800)]
Merge branch 'gallium-docs'

14 years agoegl: Fix breakage from -fvisibility=hidden.
Chia-I Wu [Tue, 5 Jan 2010 13:39:15 +0000 (21:39 +0800)]
egl: Fix breakage from -fvisibility=hidden.

Mark EGL API and driver functions as PUBLIC.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agodocs: Don't check in generated docs.
Corbin Simpson [Tue, 5 Jan 2010 16:22:52 +0000 (08:22 -0800)]
docs: Don't check in generated docs.

Per ML discussion.

14 years agodocs: Stub out list of modules in core distribution of G3D.
Corbin Simpson [Thu, 24 Dec 2009 09:53:48 +0000 (01:53 -0800)]
docs: Stub out list of modules in core distribution of G3D.

14 years agoMerge branch 'remove-intel-dri1'
Kristian Høgsberg [Tue, 5 Jan 2010 15:31:11 +0000 (10:31 -0500)]
Merge branch 'remove-intel-dri1'

* remove-intel-dri1:
  intel: intelScreenContext() is no longer used
  intel: Remove remaining dri2.enabled tests
  intel: Drop more cliprect bookkeeping
  intel: Remove struct intel_framebuffer
  intel: Remove client-side vblank code
  intel: Drop intelWindowMoved()
  intel: Drop batchbuffer cliprect_mode tracking
  intel: Drop DRI1 static regions
  intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
  intel: Drop LOCK/UNLOCK_HARDWARE()
  intel: Drop DRI1 SwapBuffer implementation
  intel: Drop DRI1 CopySubBuffer implementation
  intel: Drop DRI1 support
  Push __driDriverExtensions out of dri_util.c and into the drivers
  Remove leftover __DRI{screen,drawable,context}Private references
  Check for libdrm_$chipset.pc when needed

14 years agoMerge commit 'origin/gallium-draw-retval'
Keith Whitwell [Tue, 5 Jan 2010 14:13:40 +0000 (14:13 +0000)]
Merge commit 'origin/gallium-draw-retval'

Conflicts:
src/gallium/drivers/identity/id_context.c

14 years agor600: adjust after radeon mipmap changes in 7118db8700
Andre Maasikas [Tue, 22 Dec 2009 12:50:10 +0000 (14:50 +0200)]
r600: adjust after radeon mipmap changes in 7118db8700

R600_OUT_BATCH_RELOC doesn't really use offset so set it
in TEX_RESOURCE2
+ typo fix

14 years agor600: support depth compare functions & shadow_ambient
Andre Maasikas [Tue, 5 Jan 2010 11:44:06 +0000 (13:44 +0200)]
r600: support depth compare functions & shadow_ambient

14 years agotgsi: Simplify implementation of few interpreter's instructions.
Michal Krol [Tue, 5 Jan 2010 10:00:07 +0000 (11:00 +0100)]
tgsi: Simplify implementation of few interpreter's instructions.

14 years agotgsi: Use FREE() to release MALLOC-ed() memories in sanity.
Michal Krol [Tue, 5 Jan 2010 08:09:50 +0000 (09:09 +0100)]
tgsi: Use FREE() to release MALLOC-ed() memories in sanity.

14 years agotgsi: Fix bogus loop condition in sanity.
Michal Krol [Tue, 5 Jan 2010 08:06:30 +0000 (09:06 +0100)]
tgsi: Fix bogus loop condition in sanity.

14 years agotgsi: Treat MOV source operand as FLOAT so modifiers works as expected.
Michal Krol [Sun, 3 Jan 2010 20:13:47 +0000 (21:13 +0100)]
tgsi: Treat MOV source operand as FLOAT so modifiers works as expected.

14 years agotgsi: Store ADDR file in interpreter as an int.
Michal Krol [Sun, 3 Jan 2010 19:44:48 +0000 (20:44 +0100)]
tgsi: Store ADDR file in interpreter as an int.

14 years agotgsi: Remove dead micro_umod().
Michal Krol [Sun, 3 Jan 2010 16:59:17 +0000 (17:59 +0100)]
tgsi: Remove dead micro_umod().

14 years agotgsi: Make interpreter aware of float and integer data types.
Michal Krol [Sat, 2 Jan 2010 21:07:33 +0000 (22:07 +0100)]
tgsi: Make interpreter aware of float and integer data types.

Debug check for inf and nan only on float channels.

Apply absolute and negate source operand modifiers based on
opcode type.

14 years agogallium: Add UMOD TGSI opcode.
Michal Krol [Sat, 2 Jan 2010 10:00:40 +0000 (11:00 +0100)]
gallium: Add UMOD TGSI opcode.

Either that or have UDIV have two destination operands.

14 years agogallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.
Michal Krol [Fri, 1 Jan 2010 22:44:00 +0000 (23:44 +0100)]
gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.

Provide reference implementation of them in tgsi_exec.

Note that BREAK opcode is overloaded and can be used to break out
of either a loop or a switch-case statement.

14 years agotgsi/ureg: Improve immediate match & expand logic.
Michal Krol [Wed, 23 Dec 2009 18:08:45 +0000 (19:08 +0100)]
tgsi/ureg: Improve immediate match & expand logic.

Do not pollute immediates with unsuccessfull attempts to expand them.

14 years agotgsi: Support signed/unsigned integer immediate types.
Michal Krol [Wed, 23 Dec 2009 17:33:44 +0000 (18:33 +0100)]
tgsi: Support signed/unsigned integer immediate types.

14 years agogallium: Add signed/unsigned int immediate data types.
Michal Krol [Wed, 23 Dec 2009 17:17:34 +0000 (18:17 +0100)]
gallium: Add signed/unsigned int immediate data types.

14 years agotgsi: Cleanup interpreter code for other existing integer opcodes.
Michal Krol [Wed, 23 Dec 2009 16:22:18 +0000 (17:22 +0100)]
tgsi: Cleanup interpreter code for other existing integer opcodes.

14 years agoRemove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.
Michal Krol [Wed, 23 Dec 2009 16:02:03 +0000 (17:02 +0100)]
Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.

This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR.

14 years agotgsi: Implement new integer opcodes.
Michal Krol [Wed, 23 Dec 2009 16:00:15 +0000 (17:00 +0100)]
tgsi: Implement new integer opcodes.

Update interpreter and ureg.
Also, get rid of SHR -- it's actually an alias for ISHR.

14 years agogallium: Add more integer TGSI opcodes.
Michal Krol [Wed, 23 Dec 2009 15:51:31 +0000 (16:51 +0100)]
gallium: Add more integer TGSI opcodes.

14 years agomesa: added _mesa_[Get]TexParameterI[u]iv() functions
Brian Paul [Tue, 5 Jan 2010 03:00:00 +0000 (20:00 -0700)]
mesa: added _mesa_[Get]TexParameterI[u]iv() functions

New in GL 3.0.  Primarily meant for setting int/uint-valued texture
border color.  Not plugged into dispatch table yet.

14 years agomesa: make texture BorderColor a union of float/int/uint
Brian Paul [Tue, 5 Jan 2010 02:53:28 +0000 (19:53 -0700)]
mesa: make texture BorderColor a union of float/int/uint

When we have integer-valued texture formats, the texture border color
must also store integer and uint values.

With GL 3.0, the new glTexParameterIiv() and glTexParameterIuiv() functions
can set the border color to int or uint values.

14 years agomesa: use get_texobj() in _mesa_GetTexParameter() funcs
Brian Paul [Tue, 5 Jan 2010 02:20:33 +0000 (19:20 -0700)]
mesa: use get_texobj() in _mesa_GetTexParameter() funcs

14 years agoMerge branch 'mesa_7_7_branch'
Brian Paul [Tue, 5 Jan 2010 02:16:24 +0000 (19:16 -0700)]
Merge branch 'mesa_7_7_branch'

Conflicts:
docs/relnotes.html
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/r300/r300_cs.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/main/enums.c

14 years agomesa: add missing _mesa_lock_texture() call
Brian Paul [Tue, 5 Jan 2010 02:05:31 +0000 (19:05 -0700)]
mesa: add missing _mesa_lock_texture() call

14 years agoi915: Use _MaxLevel on principle in texture setup.
Eric Anholt [Tue, 29 Dec 2009 23:55:34 +0000 (15:55 -0800)]
i915: Use _MaxLevel on principle in texture setup.

It was OK before because we proceed to clamp the value to hardware
limits, but given that other use of MaxLevel has been a trap, let's
avoid it.

14 years agointel: Fix CopyTexImage from tiled mipmap levels > 0.
Eric Anholt [Mon, 4 Jan 2010 17:39:07 +0000 (09:39 -0800)]
intel: Fix CopyTexImage from tiled mipmap levels > 0.

Fixes piglit fbo-copyteximage.

14 years agoi965: Fix the surface offset calculation for tiled buffers.
Eric Anholt [Mon, 4 Jan 2010 16:47:01 +0000 (08:47 -0800)]
i965: Fix the surface offset calculation for tiled buffers.

If we ever had a non-tile-aligned tiled renderbuffer, the math was all
off.  Use the existing x,y coordinates instead of trying to
reconstruct them from an incorrectly-calculated offset value.

14 years agor600: support vertex_array_bgra
Andre Maasikas [Tue, 29 Dec 2009 12:47:01 +0000 (14:47 +0200)]
r600: support vertex_array_bgra

Use vertex program key mechanism and swizzle during vertex fetch - is there
a better way?

14 years agomesa: added GL_DU8DV8_ATI in extract_float_rgba()
Brian Paul [Mon, 4 Jan 2010 20:59:43 +0000 (13:59 -0700)]
mesa: added GL_DU8DV8_ATI in extract_float_rgba()

Fixes warning seen with Shadowgrounds.  See bug 24016.

14 years agodocs: initial release notes for 7.7.1
Brian Paul [Mon, 4 Jan 2010 19:47:37 +0000 (12:47 -0700)]
docs: initial release notes for 7.7.1

14 years agomesa: Prevent possible array out-of-bounds access by _mesa_light.
Vinson Lee [Mon, 4 Jan 2010 20:06:04 +0000 (12:06 -0800)]
mesa: Prevent possible array out-of-bounds access by _mesa_light.

14 years agoi965g: Fix assert.
Vinson Lee [Mon, 4 Jan 2010 19:28:37 +0000 (11:28 -0800)]
i965g: Fix assert.

14 years agotgsi: Fix assert.
Vinson Lee [Mon, 4 Jan 2010 19:25:38 +0000 (11:25 -0800)]
tgsi: Fix assert.

14 years agoMerge branch 'gallium-conditional-rendering'
Brian Paul [Mon, 4 Jan 2010 18:47:39 +0000 (11:47 -0700)]
Merge branch 'gallium-conditional-rendering'

14 years agomesa: regenerated enums.c file
Brian Paul [Mon, 4 Jan 2010 18:29:38 +0000 (11:29 -0700)]
mesa: regenerated enums.c file

14 years agoglapi: comment-out TIMEOUT_IGNORED
Brian Paul [Mon, 4 Jan 2010 18:29:09 +0000 (11:29 -0700)]
glapi: comment-out TIMEOUT_IGNORED

This is not really a GLenum value.

14 years agoglsl: use varName variable in _slang_gen_assignment()
Brian Paul [Tue, 29 Dec 2009 17:26:28 +0000 (10:26 -0700)]
glsl: use varName variable in _slang_gen_assignment()

14 years agomesa: more detailed error message in extract_float_rgba()
Brian Paul [Mon, 4 Jan 2010 18:26:56 +0000 (11:26 -0700)]
mesa: more detailed error message in extract_float_rgba()

14 years agofix overflow
Alan Hourihane [Mon, 4 Jan 2010 17:41:49 +0000 (17:41 +0000)]
fix overflow

14 years agointel: intelScreenContext() is no longer used
Kristian Høgsberg [Sat, 2 Jan 2010 04:26:50 +0000 (23:26 -0500)]
intel: intelScreenContext() is no longer used

14 years agointel: Remove remaining dri2.enabled tests
Kristian Høgsberg [Sat, 2 Jan 2010 04:26:03 +0000 (23:26 -0500)]
intel: Remove remaining dri2.enabled tests

14 years agointel: Drop more cliprect bookkeeping
Kristian Høgsberg [Sat, 2 Jan 2010 03:56:36 +0000 (22:56 -0500)]
intel: Drop more cliprect bookkeeping

14 years agointel: Remove struct intel_framebuffer
Kristian Høgsberg [Sat, 2 Jan 2010 04:21:16 +0000 (23:21 -0500)]
intel: Remove struct intel_framebuffer

With the vsync fields no longer relevant and by refactoring the code
to no longer use color_rb[0-1] we can just use struct gl_framebuffer
directly.

14 years agointel: Remove client-side vblank code
Kristian Høgsberg [Sat, 2 Jan 2010 02:41:57 +0000 (21:41 -0500)]
intel: Remove client-side vblank code

14 years agointel: Drop intelWindowMoved()
Kristian Høgsberg [Sat, 2 Jan 2010 02:37:41 +0000 (21:37 -0500)]
intel: Drop intelWindowMoved()

Everything this functions does under DRI2 is also taken care of
by intel_draw_buffer(), which is always called where intelWindowMoved()
is called.

14 years agointel: Drop batchbuffer cliprect_mode tracking
Kristian Høgsberg [Sat, 2 Jan 2010 01:01:08 +0000 (20:01 -0500)]
intel: Drop batchbuffer cliprect_mode tracking

14 years agointel: Drop DRI1 static regions
Kristian Høgsberg [Sat, 2 Jan 2010 00:29:58 +0000 (19:29 -0500)]
intel: Drop DRI1 static regions

14 years agointel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
Kristian Høgsberg [Sat, 2 Jan 2010 02:15:04 +0000 (21:15 -0500)]
intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()

This function was using intel->depth_region, which is the static region
for the DRI1 depth buffer.  This code has always been broken with DRI2
but I suspect it doesn't get excersized much.

14 years agointel: Drop LOCK/UNLOCK_HARDWARE()
Kristian Høgsberg [Fri, 1 Jan 2010 23:42:23 +0000 (18:42 -0500)]
intel: Drop LOCK/UNLOCK_HARDWARE()

14 years agointel: Drop DRI1 SwapBuffer implementation
Kristian Høgsberg [Fri, 1 Jan 2010 23:31:48 +0000 (18:31 -0500)]
intel: Drop DRI1 SwapBuffer implementation

14 years agointel: Drop DRI1 CopySubBuffer implementation
Kristian Høgsberg [Fri, 1 Jan 2010 23:29:35 +0000 (18:29 -0500)]
intel: Drop DRI1 CopySubBuffer implementation

14 years agointel: Drop DRI1 support
Kristian Høgsberg [Fri, 1 Jan 2010 23:16:15 +0000 (18:16 -0500)]
intel: Drop DRI1 support

The DDX driver stopped supporting DRI1 so we're dropping support for
that from the DRI driver too.

14 years agoPush __driDriverExtensions out of dri_util.c and into the drivers
Kristian Høgsberg [Fri, 1 Jan 2010 22:56:29 +0000 (17:56 -0500)]
Push __driDriverExtensions out of dri_util.c and into the drivers

This lets the individual drivers select which extensions to advertise.
Specifically, most drivers (tdfx, sis, savage etc) don't support DRI2
but the shared extension list in dri_util.c does list the DRI2 extension.

Pushing the list into the drivers, lets us avoid listing the DRI2
extension for drivers that don't support it.

14 years agoRemove leftover __DRI{screen,drawable,context}Private references
Kristian Høgsberg [Fri, 1 Jan 2010 22:09:12 +0000 (17:09 -0500)]
Remove leftover __DRI{screen,drawable,context}Private references

As part of the DRI driver interface rewrite I merged __DRIscreenPrivate
and __DRIscreen, and likewise for __DRIdrawablePrivate and
__DRIcontextPrivate.  I left typedefs in place though, to avoid renaming
all the *Private use internal to the driver.  That was probably a
mistake, and it turns out a one-line find+sed combo can do the mass
rename.  Better late than never.

14 years agoCheck for libdrm_$chipset.pc when needed
Kristian Høgsberg [Fri, 1 Jan 2010 22:03:33 +0000 (17:03 -0500)]
Check for libdrm_$chipset.pc when needed

This adds missing pkg-config lookup for intel and moves the radeon
lookup into a case...esac so it's only looked up when one or more of
the radeon drivers are enabled.

14 years agost/mesa: Only call st_texture_image_unmap() if texImage->Data is non-NULL.
Michel Dänzer [Mon, 4 Jan 2010 15:54:29 +0000 (16:54 +0100)]
st/mesa: Only call st_texture_image_unmap() if texImage->Data is non-NULL.

This was already done in st_TexImage() but was missed between incremental
changes to st_TexSubimage().

14 years agosilence compiler warning
Alan Hourihane [Mon, 4 Jan 2010 12:42:51 +0000 (12:42 +0000)]
silence compiler warning

14 years agoFix test
Alan Hourihane [Mon, 4 Jan 2010 12:41:33 +0000 (12:41 +0000)]
Fix test

14 years agodocs: Explain TGSI_SEMANTIC_NORMAL.
Michal Krol [Mon, 4 Jan 2010 12:38:58 +0000 (13:38 +0100)]
docs: Explain TGSI_SEMANTIC_NORMAL.

14 years agodocs: Fix indent.
Michal Krol [Mon, 4 Jan 2010 12:23:41 +0000 (13:23 +0100)]
docs: Fix indent.

14 years agodocs: Clarify what truncate means.
Michal Krol [Mon, 4 Jan 2010 12:21:32 +0000 (13:21 +0100)]
docs: Clarify what truncate means.

14 years agodocs: Replace bogus `\times' back with `*'.
Michal Krol [Mon, 4 Jan 2010 12:15:28 +0000 (13:15 +0100)]
docs: Replace bogus `\times' back with `*'.

14 years agodocs: TGSI SIN and COS are scalar instructions.
Michal Krol [Mon, 4 Jan 2010 12:12:27 +0000 (13:12 +0100)]
docs: TGSI SIN and COS are scalar instructions.

14 years agosvga: Fix debug build crash when rendering to depth/stencil renderbuffer only.
Michel Dänzer [Mon, 4 Jan 2010 12:05:43 +0000 (13:05 +0100)]
svga: Fix debug build crash when rendering to depth/stencil renderbuffer only.

14 years agost/xorg: Proper calculation of screen pitch.
Michel Dänzer [Mon, 4 Jan 2010 12:04:05 +0000 (13:04 +0100)]
st/xorg: Proper calculation of screen pitch.

14 years agovmware/xorg: Fix SCons build.
Michel Dänzer [Mon, 4 Jan 2010 12:02:40 +0000 (13:02 +0100)]
vmware/xorg: Fix SCons build.

14 years agodocs: Clarify math description of TGSI LRP instruction operation.
Michal Krol [Mon, 4 Jan 2010 11:59:17 +0000 (12:59 +0100)]
docs: Clarify math description of TGSI LRP instruction operation.

14 years agodocs: Correct TGSI acronym expansion.
Michal Krol [Mon, 4 Jan 2010 11:52:43 +0000 (12:52 +0100)]
docs: Correct TGSI acronym expansion.

14 years agor600: support vertex_array_bgra
Andre Maasikas [Tue, 29 Dec 2009 12:47:01 +0000 (14:47 +0200)]
r600: support vertex_array_bgra

Use vertex program key mechanism and swizzle during vertex fetch - is there
a better way?

14 years agor300: Use C-style comments.
Vinson Lee [Mon, 4 Jan 2010 07:33:32 +0000 (23:33 -0800)]
r300: Use C-style comments.

14 years agoprogs/egl: Silence uninitialized variable warnings.
Vinson Lee [Mon, 4 Jan 2010 05:39:20 +0000 (21:39 -0800)]
progs/egl: Silence uninitialized variable warnings.

14 years agoprogs/samples: Silence compiler warnings.
Vinson Lee [Mon, 4 Jan 2010 05:29:33 +0000 (21:29 -0800)]
progs/samples: Silence compiler warnings.

14 years agor300: Silence 'mixed declarations and code' warnings.
Vinson Lee [Mon, 4 Jan 2010 04:51:23 +0000 (20:51 -0800)]
r300: Silence 'mixed declarations and code' warnings.

14 years agoOnly enable verbose NoOp dispatch if DEBUG is defined
Kristian Høgsberg [Mon, 4 Jan 2010 04:24:13 +0000 (23:24 -0500)]
Only enable verbose NoOp dispatch if DEBUG is defined

By default we generate a function per GL entry point to warn if it's
called without a context set.  This is to allow the function to print
it's name in the warning.  By using a generic function that doesn't print
the function name in the non-DEBUG case, we reduce libGL size from
320008 bytes to 283144 bytes (11%).

14 years agor300: Silence 'mixed declarations and code' warning.
Vinson Lee [Mon, 4 Jan 2010 04:16:59 +0000 (20:16 -0800)]
r300: Silence 'mixed declarations and code' warning.

14 years agoNoop dispatch: move warning code out of the generated functions
Kristian Høgsberg [Mon, 4 Jan 2010 03:46:43 +0000 (22:46 -0500)]
Noop dispatch: move warning code out of the generated functions

This reduces libGL size by 11% here, going from 360968 bytes to
320008 bytes.

14 years agor300: Silence 'mixed declarations and code' warning.
Vinson Lee [Mon, 4 Jan 2010 02:32:07 +0000 (18:32 -0800)]
r300: Silence 'mixed declarations and code' warning.

14 years agor300g: Silence 'mixed declarations and code' warning.
Vinson Lee [Mon, 4 Jan 2010 02:05:12 +0000 (18:05 -0800)]
r300g: Silence 'mixed declarations and code' warning.

14 years agoFix glut to work with -fvisibility=hidden
Kristian Høgsberg [Mon, 4 Jan 2010 01:59:52 +0000 (20:59 -0500)]
Fix glut to work with -fvisibility=hidden

The GLUTAPI #define used in the header file to mark the font structs
visible wasn't kicking in because of the #define glutBitmap9By15 XXX
prior to #include <GL/glut.h>.  High quality code... worked around by
copying the GLUTAPI specifier to the invidual C files.

14 years agoExport a few glapi functions used by gallium and r300
Kristian Høgsberg [Mon, 4 Jan 2010 00:53:01 +0000 (19:53 -0500)]
Export a few glapi functions used by gallium and r300

Fixes breakage from -fvisibility-hidden commit.

14 years agor300g: Remove comma at end of enumerator list.
Vinson Lee [Sun, 3 Jan 2010 23:07:35 +0000 (15:07 -0800)]
r300g: Remove comma at end of enumerator list.

14 years agollvmpipe: Remove comma at end of enumerator list.
Vinson Lee [Sun, 3 Jan 2010 22:42:36 +0000 (14:42 -0800)]
llvmpipe: Remove comma at end of enumerator list.