summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-10-27mesa: Remove unnecessary glapitable.h includes.Chia-I Wu
With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included by core mesa only to know the size of _glapi_table. It is not necessary as the same info is given by _gloffset_COUNT. This change makes _glapi_table opaque to core mesa. All operations on it are supposed to go through one of the SET/GET/CALL macros.
2010-10-27vbo: Use CALL_* macros.Chia-I Wu
Use macros to access _glapi_table consistently. There is no functional change.
2010-10-27glapi: Merge glapioffsets.h into glapidispath.h.Chia-I Wu
Move defines in glapioffsets.h to glapidispatch.h. Rename _gloffset_FIRST_DYNAMIC to _gloffset_COUNT, which is equal to the number of entries in _glapi_table. Consistently use SET_by_offset, GET_by_offset, CALL_by_offset, and _gloffset_* to recursively define all SET/GET/CALL macros.
2010-10-27glapi: Do not use glapioffsets.h.Chia-I Wu
glapioffsets.h exists for the same reason as glapidispatch.h does. It is of no use to glapi. This commit also drops the use of glapioffsets.h in glx as glx is considered an extension to glapi when it comes to defining public GL entries.
2010-10-27glapi: Move glapidispatch.h to core mesa.Chia-I Wu
It is a core mesa header, not a glapi header.
2010-10-27glapi: Do not use glapidispatch.h.Chia-I Wu
glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
2010-10-26mesa: remove the unused _mesa_is_fragment_shader_active() functionBrian Paul
This reverts commit 013d5ffeec3af5665c81c6a7a8370d21699ca609.
2010-10-26mesa: call _mesa_valid_to_render() in glDrawPixels, glCopyPixels, glBitmapBrian Paul
This lets us simplify and consolidate some state checking code. This implements the GL_INVALID_OPERATION check for all drawing commands required by GL_EXT_texture_integer.
2010-10-26mesa: do integer FB / shader validation check in _mesa_valid_to_render()Brian Paul
2010-10-26i965: Disable register spilling on gen6 until it's fixed.Eric Anholt
Avoids GPU hang on glsl-fs-convolution-1.
2010-10-26i965: Fix VS URB entry sizing.Eric Anholt
I'm trying to clamp to a minimum of 1 URB row, not a maximum of 1. Fixes: glsl-kwin-blur glsl-max-varying glsl-routing
2010-10-26i965: Drop the eot argument to read messages, which can never be set.Eric Anholt
2010-10-26i965: Add support for constant buffer loads on gen6.Eric Anholt
Fixes glsl-fs-uniform-array-5.
2010-10-26i965: Set up the constant buffer on gen6 when it's needed.Eric Anholt
This was slightly confused because gen6_wm_constants does the push constant buffer, while brw_wm_constants does pull constants.
2010-10-26i965: Fix typo in comment about state flags.Eric Anholt
2010-10-26i965: Handle new ir_unop_round_even in channel expression splitting.Eric Anholt
2010-10-26i965: Add support for discard instructions on gen6.Eric Anholt
It's a little more painful than before because we don't have the handy mask register any more, and have to make do with cooking up a value out of the flag register.
2010-10-26i965: Add disasm for the flag register.Eric Anholt
2010-10-26i965: Clear some undefined fields of g0 when using them for gen6 FB writes.Eric Anholt
This doesn't appear to help any testcases I'm looking at, but it looks like it's required.
2010-10-26i965: Use SENDC on the first render target write on gen6.Eric Anholt
This is apparently required, as the thread will be initiated while it still has dependencies, and this is what waits for those to be resolved before writing color.
2010-10-26i965: Clarify an XXX comment in FB writes with real info.Eric Anholt
2010-10-26i965: Add EU code for dword scattered reads (constant buffer array indexing).Eric Anholt
2010-10-26egl_dri2: Fix a typo that make glFlush be called at wrong time.Chia-I Wu
We want to call glFlush when there is a current context. That is, old_ctx. This is a regression introduced by d19afc57fe49816f3f3290410e0124d326577be2.
2010-10-26r600g: add assembler support for all the kcache fields.Dave Airlie
2010-10-25mesa: additional teximage error checks for GL_EXT_texture_integerBrian Paul
2010-10-25mesa: additional switch cases for GL_EXT_texture_integerBrian Paul
2010-10-25mesa: additional glReadPixels error checks for GL_EXT_texture_integerBrian Paul
2010-10-26r600g: fix magic 0x1 ->flat shade enaDave Airlie
2010-10-25glsl: Fix constant component count in vector constructor emitting.Kenneth Graunke
Fixes freedesktop.org bug #31101 as well as piglit test cases assignment-type-mismatch.vert and constructor-28.vert.
2010-10-25glsl: Fix ast-to-hir for ARB_fragment_coord_conventionsChad Versace
Function ast_declarator_list::hir(), when processing keywords added by extension ARB_fragment_coord_conventions, made the mistake of checking only if the extension was __supported by the driver__. The correct behavior is to check if the extensi0n is __enabled in the parse state__. NOTE: this is a candidate for the 7.9 branch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2010-10-25translate: remove unused prototypesBrian Paul
2010-10-25translate: use function typedefs, casts to silence warningsBrian Paul
2010-10-25st/mesa: support RGBA16 and use it for RGBA12 as wellMarek Olšák
Tested with r300g. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-10-25rtasm: use pointer_to_func() to silence warningBrian Paul
2010-10-25util: use pointer_to_func() to silence warningBrian Paul
2010-10-25xlib: silence unused var warningBrian Paul
2010-10-25mesa: fix uninitialized var warningBrian Paul
http://bugs.freedesktop.org/show_bug.cgi?id=31067
2010-10-25mesa: silence enum comparison warningBrian Paul
http://bugs.freedesktop.org/show_bug.cgi?id=31069
2010-10-24r300g: fix texture border for 16-bits-per-channel formatsMarek Olšák
This is kinda hacky, but it's hard to come up with a generic solution for all formats when only a few are used in practice (I mostly get B8G8R8*8).
2010-10-24mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITYMarek Olšák
As per the GL_ARB_framebuffer_object specification. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-10-24Ensure -L$(TOP)/$(LIB_DIR) appears in link line before any -L in $LDFLAGSJon TURNEY
Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears in the link line before any -L in $LDFLAGS, so that we link driver we are building with libEGL we have just built, and not an installed version [olv: make a similar change to targets/egl] Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2010-10-24r600g: drop more common state handling codeDave Airlie
2010-10-24r600g: Also clear bc data when we're destroying a shader.Tilman Sauerbeck
[airlied: remove unused vars] Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: Added r600_pipe_shader_destroy().Tilman Sauerbeck
Not yet complete. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-24r600g: merge more of the common r600/evergreen state handlingDave Airlie
2010-10-24r600g: Fixed r600_vertex_element leak.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-23softpipe: remove >32bpp color restrictionBrian Paul
The comment was out of date. The tile cache does handle >32-bit colors.
2010-10-23st/mesa: be smarter choosing texture format for glDrawPixels()Brian Paul
This lets us get an integer texture format for integer pixel formats.
2010-10-23mesa: display list support for GL_EXT_texture_integerBrian Paul
2010-10-23mesa: plug in GL_EXT_texture_integer functionsBrian Paul