mesa.git
14 years agost/mesa: don't set RENDER_TARGET/DEPTH_STENCIL flag for compressed textures
Brian Paul [Fri, 23 Apr 2010 18:28:55 +0000 (12:28 -0600)]
st/mesa: don't set RENDER_TARGET/DEPTH_STENCIL flag for compressed textures

14 years agost/mesa: get rid of default_deep_rgba_format()
Brian Paul [Fri, 23 Apr 2010 18:15:06 +0000 (12:15 -0600)]
st/mesa: get rid of default_deep_rgba_format()

This special-case code used to be used for the accum buffer but
the accum buffer implementation was changed some time ago.

14 years agomesa: make is_compressed_format() non-static
Brian Paul [Fri, 23 Apr 2010 18:01:50 +0000 (12:01 -0600)]
mesa: make is_compressed_format() non-static

14 years agomesa: faster, simpler is_compressed_format()
Brian Paul [Fri, 23 Apr 2010 17:58:52 +0000 (11:58 -0600)]
mesa: faster, simpler is_compressed_format()

14 years agollvmpipe: rename texture refs to resource refs
Brian Paul [Fri, 23 Apr 2010 16:12:30 +0000 (10:12 -0600)]
llvmpipe: rename texture refs to resource refs

14 years agollvmpipe: update for half float formats
Alan Hourihane [Fri, 23 Apr 2010 18:26:03 +0000 (19:26 +0100)]
llvmpipe: update for half float formats

14 years agost/xlib: Try to propagate failure to create framebuffer.
José Fonseca [Fri, 23 Apr 2010 16:07:14 +0000 (17:07 +0100)]
st/xlib: Try to propagate failure to create framebuffer.

Doesn't help much, since it is ignored by st_framebuffer_validate.

14 years agosoftpipe: YUV textures should be supported.
José Fonseca [Fri, 23 Apr 2010 16:04:06 +0000 (17:04 +0100)]
softpipe: YUV textures should be supported.

14 years agomesa/st: Remove dead members.
José Fonseca [Fri, 23 Apr 2010 16:03:10 +0000 (17:03 +0100)]
mesa/st: Remove dead members.

14 years agosw/xlib: Fallback to XPutImage when shmget fails.
José Fonseca [Fri, 23 Apr 2010 15:56:55 +0000 (16:56 +0100)]
sw/xlib: Fallback to XPutImage when shmget fails.

After continuously running regression tests on Ubuntu for 2 days, shmget
mysteriously starts to fail. Even when the X server is reset.

This allow rendering to proceed, albeit using a slower presentation path.

14 years agollvmpipe: increase max 2D texture / surface size to 4K x 4K
Brian Paul [Fri, 23 Apr 2010 15:13:03 +0000 (09:13 -0600)]
llvmpipe: increase max 2D texture / surface size to 4K x 4K

14 years agollvmpipe: rename MAXWIDTH, MAXHEIGHT
Brian Paul [Fri, 23 Apr 2010 15:10:18 +0000 (09:10 -0600)]
llvmpipe: rename MAXWIDTH, MAXHEIGHT

14 years agollvmpipe: rename lp_tile_size.h to lp_limits.h
Brian Paul [Fri, 23 Apr 2010 15:07:55 +0000 (09:07 -0600)]
llvmpipe: rename lp_tile_size.h to lp_limits.h

Collect the various driver limits in one place since.

14 years agollvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h
Brian Paul [Fri, 23 Apr 2010 15:03:10 +0000 (09:03 -0600)]
llvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h

14 years agoMerge remote branch 'origin/7.8'
Jerome Glisse [Fri, 23 Apr 2010 10:08:36 +0000 (12:08 +0200)]
Merge remote branch 'origin/7.8'

14 years agor600: don't enable depth test if there is no depth buffer
Jerome Glisse [Fri, 23 Apr 2010 09:56:06 +0000 (11:56 +0200)]
r600: don't enable depth test if there is no depth buffer

If there is no depth buffer bound to current context don't
enable depth test. GL states that if depth test is enabled
without depth buffer it's as if depth buffer always pass.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agoMerge branch '7.8'
Michel Dänzer [Fri, 23 Apr 2010 09:18:29 +0000 (11:18 +0200)]
Merge branch '7.8'

14 years agoglx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
Michel Dänzer [Fri, 23 Apr 2010 09:14:13 +0000 (11:14 +0200)]
glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Fri, 23 Apr 2010 07:59:12 +0000 (00:59 -0700)]
llvmpipe: Remove unused variable.

14 years agoi965: Fix assertion for surface tile offset usage on Ironlake.
Eric Anholt [Thu, 22 Apr 2010 22:24:26 +0000 (15:24 -0700)]
i965: Fix assertion for surface tile offset usage on Ironlake.

Fixes assertion failure in fbo-generatemipmap-npot.

14 years agoi965: Fix scissoring when width or height is 0.
Eric Anholt [Tue, 20 Apr 2010 20:40:28 +0000 (13:40 -0700)]
i965: Fix scissoring when width or height is 0.

We would run into trouble due to the hardware using inclusive numbers
and the subtraction to handle that producing negative (meaning large
positive) coordinates.

Bug #27643.

14 years agogallivm: implement indirect addressing over temporaries
Zack Rusin [Thu, 22 Apr 2010 22:36:07 +0000 (18:36 -0400)]
gallivm: implement indirect addressing over temporaries

a bit more involved than indirect addressing over consts, but still
fairly reasonable. we allocate an array instead of individual alloca's,
and we do it only if the shader does indirect addressing.

14 years agogallivm: implement indirect addressing over constants
Zack Rusin [Thu, 22 Apr 2010 21:31:55 +0000 (17:31 -0400)]
gallivm: implement indirect addressing over constants

implement indirect addressing (ARL and ARR instructions) when used
with CONST's. indirect addressing over other vars (temps, inputs, outputs)
is not supported yet.

14 years agoradeon: 9800 SE has only one quadpipe
Tormod Volden [Thu, 22 Apr 2010 19:52:15 +0000 (21:52 +0200)]
radeon: 9800 SE has only one quadpipe

Although these cards have 2 pipelines on the silicon only
the first passed the QA and the other should be disabled.

http://www.digital-daily.com/video/ati-radeon9800se/
http://www.rojakpot.com/showarticle.aspx?artno=101&pgno=1

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
14 years agogallium: use better param name
Brian Paul [Thu, 22 Apr 2010 20:39:03 +0000 (14:39 -0600)]
gallium: use better param name

14 years agogallivm: remove Z/stencil special case code in lp_build_sample_offset()
Brian Paul [Thu, 22 Apr 2010 20:35:54 +0000 (14:35 -0600)]
gallivm: remove Z/stencil special case code in lp_build_sample_offset()

Fixes progs/tests/zreaddraw.c and progs/demos/shadowtex.c

14 years agost/mesa: assert that binding flags are properly set for drawing surfaces
Brian Paul [Thu, 22 Apr 2010 20:35:21 +0000 (14:35 -0600)]
st/mesa: assert that binding flags are properly set for drawing surfaces

14 years agost/mesa: fix binding flags in st_ChooseTextureFormat()
Brian Paul [Thu, 22 Apr 2010 20:34:22 +0000 (14:34 -0600)]
st/mesa: fix binding flags in st_ChooseTextureFormat()

See comment for more info.

14 years agoprogs/tests: asst. improvements to zreaddraw.c
Brian Paul [Thu, 22 Apr 2010 20:29:29 +0000 (14:29 -0600)]
progs/tests: asst. improvements to zreaddraw.c

14 years agoDRI2/GLX: check for vblank_mode in DRI2 GLX code
Jesse Barnes [Thu, 22 Apr 2010 19:49:03 +0000 (12:49 -0700)]
DRI2/GLX: check for vblank_mode in DRI2 GLX code

Re-add support for the vblank_mode environment and configuration
variable.  Useful for benchmarking and app control.

14 years agoDRI2: add config query extension
Jesse Barnes [Thu, 22 Apr 2010 19:47:41 +0000 (12:47 -0700)]
DRI2: add config query extension

Add a new DRI2 configuration query extension.  Allows for DRI2 client
code to query for common DRI2 configuration options.

14 years agollvmpipe: Undo zs tiling changes.
José Fonseca [Thu, 22 Apr 2010 19:38:36 +0000 (20:38 +0100)]
llvmpipe: Undo zs tiling changes.

tile_w/tile_h have different meaning there.

This partialy reverts commit ccdc6b5913885866e100780bfd661672c9a5d23c.

14 years agogallium/docs: Unswap PIPE_BIND_SHARED's comment.
José Fonseca [Thu, 22 Apr 2010 18:51:10 +0000 (19:51 +0100)]
gallium/docs: Unswap PIPE_BIND_SHARED's comment.

14 years agogallium/docs: many updates to screen.rst
Brian Paul [Thu, 22 Apr 2010 18:44:40 +0000 (12:44 -0600)]
gallium/docs: many updates to screen.rst

Put PIPE_BIND_ and PIPE_TEXTURE_GEOM_ prefixes on token names so
that they can be found with grep.  This needs to be done in more places.

Corrected/improved a lot of information and grammer.

I don't know how to properly format everything - someone else can take
care of that.

14 years agollvmpipe: Portability fixes.
José Fonseca [Thu, 22 Apr 2010 18:24:30 +0000 (19:24 +0100)]
llvmpipe: Portability fixes.

14 years agollvmpipe: Fix rendering to non 32bpp formats.
José Fonseca [Thu, 22 Apr 2010 18:23:40 +0000 (19:23 +0100)]
llvmpipe: Fix rendering to non 32bpp formats.

Tiled layout always used 32bpp, therefore linear/tiled strides are not
related.

14 years agogallivm: update comments
Zack Rusin [Thu, 22 Apr 2010 17:56:54 +0000 (13:56 -0400)]
gallivm: update comments

14 years agogallivm: fix nested cont statements
Zack Rusin [Thu, 22 Apr 2010 17:45:25 +0000 (13:45 -0400)]
gallivm: fix nested cont statements

14 years agogallivm: fix nested break statemants
Zack Rusin [Thu, 22 Apr 2010 17:43:37 +0000 (13:43 -0400)]
gallivm: fix nested break statemants

14 years agogallivm: make sure we return the correct type when approximating log's
Zack Rusin [Thu, 22 Apr 2010 17:00:48 +0000 (13:00 -0400)]
gallivm: make sure we return the correct type when approximating log's

14 years agollvmpipe: Use resource_is_texture() consistently.
José Fonseca [Thu, 22 Apr 2010 17:22:22 +0000 (18:22 +0100)]
llvmpipe: Use resource_is_texture() consistently.

Otherwise slightly difference order causes assertion failures.

Also remove mentions of PIPE_BIND_SCANOUT/PIPE_BIND_SHARED. They are not
propoer bind flags and will likely be deprecated. If surfaces should
be passed to the winsys then they should have the DISPLAY_TARGET flag
set, which is a proper bind flag.

14 years agogallium: fix comment language, remove dangling comment
Brian Paul [Thu, 22 Apr 2010 17:33:26 +0000 (11:33 -0600)]
gallium: fix comment language, remove dangling comment

14 years agost/mesa: consolidate code for finding supported formats
Brian Paul [Thu, 22 Apr 2010 17:04:04 +0000 (11:04 -0600)]
st/mesa: consolidate code for finding supported formats

14 years agost/mesa: refactor depth/stencil format selection code
Brian Paul [Thu, 22 Apr 2010 16:47:53 +0000 (10:47 -0600)]
st/mesa: refactor depth/stencil format selection code

14 years agomesa: sort texel fetch/store table by format index
Brian Paul [Thu, 22 Apr 2010 16:02:18 +0000 (10:02 -0600)]
mesa: sort texel fetch/store table by format index

14 years agoMerge branch '7.8'
Brian Paul [Thu, 22 Apr 2010 17:10:19 +0000 (11:10 -0600)]
Merge branch '7.8'

Conflicts:

src/mesa/state_tracker/st_format.c

14 years agost/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24
Brian Paul [Thu, 22 Apr 2010 16:26:20 +0000 (10:26 -0600)]
st/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24

14 years agomesa: fix conversion errors in signed_rgba8888[rev] texel fetch
Brian Paul [Thu, 22 Apr 2010 14:46:46 +0000 (08:46 -0600)]
mesa: fix conversion errors in signed_rgba8888[rev] texel fetch

Without the cast the returned texel colors were wrong.
Also, we don't need the "& 0xff" part anymore.
Bug found by Vinson Lee.

14 years agollvmpipe: Fix resource_is_texture.
José Fonseca [Thu, 22 Apr 2010 17:06:05 +0000 (18:06 +0100)]
llvmpipe: Fix resource_is_texture.

It was missing PIPE_BIND_RENDER_TARGET, causing assertion failures for
pure render targets.

Also bind flags are too variable and complex for a good assessment for
whether the resource is a texture or not. Target is more concise.

14 years agollvmpipe: Do not advertise S3TC rendering support.
José Fonseca [Thu, 22 Apr 2010 14:12:30 +0000 (15:12 +0100)]
llvmpipe: Do not advertise S3TC rendering support.

14 years agollvmpipe: Fix typo in assert.
José Fonseca [Thu, 22 Apr 2010 14:11:57 +0000 (15:11 +0100)]
llvmpipe: Fix typo in assert.

14 years agou_format: Reduce code duplication.
José Fonseca [Thu, 22 Apr 2010 14:11:34 +0000 (15:11 +0100)]
u_format: Reduce code duplication.

14 years agogallivm: Remove unused variable.
Vinson Lee [Thu, 22 Apr 2010 07:45:27 +0000 (00:45 -0700)]
gallivm: Remove unused variable.

14 years agor300g: fix vertex unit setup
Alex Deucher [Thu, 22 Apr 2010 06:37:34 +0000 (02:37 -0400)]
r300g: fix vertex unit setup

RV3xx is 2, RV560,RV570 is 8

Noticed by Tormod Volden.

14 years agor300: fix vertex unit setup
Alex Deucher [Thu, 22 Apr 2010 06:33:10 +0000 (02:33 -0400)]
r300: fix vertex unit setup

RV3xx is 2, RV560,RV570 is 8

Noticed by Tormod Volden.

14 years agogallium/util: Fix deviation calculation in u_cache.
Vinson Lee [Thu, 22 Apr 2010 01:45:44 +0000 (18:45 -0700)]
gallium/util: Fix deviation calculation in u_cache.

The approximate deviation calculation was using the entire cache's total
instead of each cache entry's total.

14 years agogallium/tests: Add test case for u_cache.
Vinson Lee [Thu, 22 Apr 2010 01:31:01 +0000 (18:31 -0700)]
gallium/tests: Add test case for u_cache.

14 years agogallivm: added some assertions in loop-gen code
Brian Paul [Thu, 22 Apr 2010 00:22:15 +0000 (18:22 -0600)]
gallivm: added some assertions in loop-gen code

We're hitting these assertions with nested loops...

14 years agoprogs/demos: Fix the progs/demos/rain help text
Aaron Plattner [Thu, 22 Apr 2010 00:13:19 +0000 (18:13 -0600)]
progs/demos: Fix the progs/demos/rain help text

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agogallivm: fix copy&paste error: s/cont_stack_size/break_stack_size/
Brian Paul [Wed, 21 Apr 2010 23:58:26 +0000 (17:58 -0600)]
gallivm: fix copy&paste error: s/cont_stack_size/break_stack_size/

14 years agogallivm: emit_instruction() is boolean
Brian Paul [Wed, 21 Apr 2010 23:57:44 +0000 (17:57 -0600)]
gallivm: emit_instruction() is boolean

14 years agoprogs/glsl: better comments
Brian Paul [Wed, 21 Apr 2010 22:30:04 +0000 (16:30 -0600)]
progs/glsl: better comments

14 years agollvmpipe: add missing dependency in Makefile
Brian Paul [Wed, 21 Apr 2010 22:29:13 +0000 (16:29 -0600)]
llvmpipe: add missing dependency in Makefile

14 years agogallivm: implement TGSI KILP
Brian Paul [Wed, 21 Apr 2010 22:27:23 +0000 (16:27 -0600)]
gallivm: implement TGSI KILP

As in tgsi_exec.c we don't actually rely on condition codes; we do
an unconditional kill.  The only predication comes from the execution
mask which applies inside loops/conditionals.

14 years agodraw: Make LLVM integration work without llvmpipe too (e.g. sofptipe).
José Fonseca [Wed, 21 Apr 2010 16:30:39 +0000 (17:30 +0100)]
draw: Make LLVM integration work without llvmpipe too (e.g. sofptipe).

Prevents the assertion failure.

14 years agoradeon: fix warning
Marek Olšák [Wed, 21 Apr 2010 20:53:11 +0000 (22:53 +0200)]
radeon: fix warning

14 years agor300g: raise the max index for generic varyings to 32
Marek Olšák [Wed, 21 Apr 2010 20:48:07 +0000 (22:48 +0200)]
r300g: raise the max index for generic varyings to 32

This should fix an assertion failure in the game Heroes of Newearth.
Yes, the game seems to generate semantic indices greater than 15.

14 years agosoftpipe: call draw_wide_point_sprites()
Brian Paul [Wed, 21 Apr 2010 20:23:42 +0000 (14:23 -0600)]
softpipe: call draw_wide_point_sprites()

14 years agogallium/draw: fix point sprite handling
Brian Paul [Wed, 21 Apr 2010 20:24:26 +0000 (14:24 -0600)]
gallium/draw: fix point sprite handling

New draw API function to indicate whether or not to convert points to
quads for sprite rasterization.

Fix point-to-quad conversion regression in the wide-point stage.  We
need to check the pipe_rasterizer_state::point_quad_rasterization flag.

14 years agogallium/draw: use local var to simplify code
Brian Paul [Wed, 21 Apr 2010 20:16:02 +0000 (14:16 -0600)]
gallium/draw: use local var to simplify code

14 years agollvmpipe: consolidate texture memory allocation code
Brian Paul [Wed, 21 Apr 2010 16:30:53 +0000 (10:30 -0600)]
llvmpipe: consolidate texture memory allocation code

And fix incorrect allocation of linear memory for display targets.
This fixes fd.o bugs 27761 and 27762.

14 years agost/glx: variable 'i' is an enum
Brian Paul [Wed, 21 Apr 2010 15:58:15 +0000 (09:58 -0600)]
st/glx: variable 'i' is an enum

Now we can get see 'i' as an enum name instead of a plain integer in gdb.

14 years agotargets: Don't check if we should use trace
Jakob Bornecrantz [Wed, 21 Apr 2010 13:48:54 +0000 (14:48 +0100)]
targets: Don't check if we should use trace

Trace does its own checking, and it used the GALLIUM_TRACE variable
as well, but expected a file and not a bool argument.

14 years agomesa/st: Translate a few more mesa/gallium formats.
José Fonseca [Wed, 21 Apr 2010 09:19:39 +0000 (11:19 +0200)]
mesa/st: Translate a few more mesa/gallium formats.

These endup used by Xvnc.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Wed, 21 Apr 2010 05:56:39 +0000 (22:56 -0700)]
llvmpipe: Remove unused variable.

14 years agomesa: do version checking for GL 3.x queries
Brian Paul [Wed, 21 Apr 2010 03:17:35 +0000 (21:17 -0600)]
mesa: do version checking for GL 3.x queries

14 years agomesa: API and state for GL 3.1 primitive restart
Brian Paul [Wed, 21 Apr 2010 03:02:09 +0000 (21:02 -0600)]
mesa: API and state for GL 3.1 primitive restart

14 years agomesa: add GL 3.2 GL_CONTEXT_PROFILE_MASK query
Brian Paul [Wed, 21 Apr 2010 02:52:56 +0000 (20:52 -0600)]
mesa: add GL 3.2 GL_CONTEXT_PROFILE_MASK query

14 years agomesa: remove some comments
Brian Paul [Wed, 21 Apr 2010 02:44:54 +0000 (20:44 -0600)]
mesa: remove some comments

14 years agointel: Add Sandybridge mobile chipset id
Zhenyu Wang [Mon, 19 Apr 2010 08:27:10 +0000 (16:27 +0800)]
intel: Add Sandybridge mobile chipset id

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agointel: Clean up chipset name and gen num for Ironlake
Zhenyu Wang [Mon, 19 Apr 2010 07:51:50 +0000 (15:51 +0800)]
intel: Clean up chipset name and gen num for Ironlake

Rename old IGDNG to Ironlake, and set 'gen' number for
Ironlake as 5, so tracking the features with generation num
instead of special is_ironlake flag.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agogallivm: Remove unnecessary headers.
Vinson Lee [Wed, 21 Apr 2010 01:48:04 +0000 (18:48 -0700)]
gallivm: Remove unnecessary headers.

14 years agoi965g: s/inttypes.h/stdint.h/
Vinson Lee [Wed, 21 Apr 2010 00:22:26 +0000 (17:22 -0700)]
i965g: s/inttypes.h/stdint.h/

MSVC doesn't have either but Mesa has stdint.h at include/c99.

14 years agoi965g: Remove unnecessary header.
Vinson Lee [Wed, 21 Apr 2010 00:02:03 +0000 (17:02 -0700)]
i965g: Remove unnecessary header.

14 years agollvmpipe: Change return type of declaration to match code.
Vinson Lee [Tue, 20 Apr 2010 23:40:55 +0000 (16:40 -0700)]
llvmpipe: Change return type of declaration to match code.

Commit 2142108e0e1cf1ed8d0142e9c41fe1947abe0907 changed the return type
of llvmpipe_get_texture_image_address function but didn't change the
declaration.

Fixes build.

14 years agollvmpipe: code consolidation
Brian Paul [Tue, 20 Apr 2010 23:28:33 +0000 (17:28 -0600)]
llvmpipe: code consolidation

14 years agollvmpipe: remove debug code and simplify
Brian Paul [Tue, 20 Apr 2010 23:19:30 +0000 (17:19 -0600)]
llvmpipe: remove debug code and simplify

14 years agollvmpipe: fix cube face addressing bug
Brian Paul [Tue, 20 Apr 2010 23:14:47 +0000 (17:14 -0600)]
llvmpipe: fix cube face addressing bug

Fixes fd.o bug 27760 (pigit fbo-cubemap).

14 years agollvmpipe: whitespace fix
Brian Paul [Tue, 20 Apr 2010 23:14:21 +0000 (17:14 -0600)]
llvmpipe: whitespace fix

14 years agogallium: Fix copy typo
Jakob Bornecrantz [Tue, 20 Apr 2010 22:59:38 +0000 (23:59 +0100)]
gallium: Fix copy typo

14 years agosvga: Minor clean up of winsys
Jakob Bornecrantz [Tue, 20 Apr 2010 22:31:39 +0000 (23:31 +0100)]
svga: Minor clean up of winsys

14 years agoradeong: Minor clean up of winsys
Jakob Bornecrantz [Tue, 20 Apr 2010 22:31:25 +0000 (23:31 +0100)]
radeong: Minor clean up of winsys

Also try to wrap trace around driver on non-debug builds, its free.

14 years agonouveau: Minor clean up of winsys
Jakob Bornecrantz [Tue, 20 Apr 2010 22:31:07 +0000 (23:31 +0100)]
nouveau: Minor clean up of winsys

14 years agoi965g: Minor clean up of winsys
Jakob Bornecrantz [Tue, 20 Apr 2010 22:30:41 +0000 (23:30 +0100)]
i965g: Minor clean up of winsys

14 years agoi915g: Minor clean up of winsys
Jakob Bornecrantz [Tue, 20 Apr 2010 22:28:19 +0000 (23:28 +0100)]
i915g: Minor clean up of winsys

14 years agost/egl: No need to use drm_api argument struct
Jakob Bornecrantz [Tue, 20 Apr 2010 22:51:56 +0000 (23:51 +0100)]
st/egl: No need to use drm_api argument struct

14 years agost/egl: Use correct driver_name field to get kernel driver name
Jakob Bornecrantz [Tue, 20 Apr 2010 22:51:22 +0000 (23:51 +0100)]
st/egl: Use correct driver_name field to get kernel driver name

14 years agost/egl: Check for null destroy callback on api struct
Jakob Bornecrantz [Tue, 20 Apr 2010 22:44:40 +0000 (23:44 +0100)]
st/egl: Check for null destroy callback on api struct

14 years agomesa: better, smaller error handling code for glGet*()
Brian Paul [Tue, 20 Apr 2010 22:15:14 +0000 (16:15 -0600)]
mesa: better, smaller error handling code for glGet*()

get.o is about 17% smaller.

14 years agomesa: better, smaller error handling code for glEnable/Disable/IsEnabled()
Brian Paul [Tue, 20 Apr 2010 22:13:08 +0000 (16:13 -0600)]
mesa: better, smaller error handling code for glEnable/Disable/IsEnabled()

Use a goto instead of replicating the _mesa_error() call many times.
enable.o is about 15% smaller.