summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
AgeCommit message (Collapse)Author
2011-02-14gallium: always save and restore vertex buffers using cso_cacheMarek Olšák
2011-02-11st/mesa: Fix surfaceless opengl with non-dummy contextsBenjamin Franzke
main/context.c:check_complatible() detecs an incomplete framebuffer using its pointer, so do not copy it. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=34042
2011-02-11st/mesa: allow rendering to sRGB textures if EXT_fb_srgb is unsupportedMarek Olšák
In this case, we always use the corresponding linear format in create_surface, therefore we should check for linear format support as well.
2011-02-10mesa/st: enable GL_EXT_framebuffer_sRGBDave Airlie
If the formats don't match we need to update the surface with the new format. if we can render to SRGB formats, enable the extension Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-09mesa/st: Clean up vertex buffer unreferencingThomas Hellstrom
Avoid accessing draw module internal structures outside of the draw module. Unreference vertex buffers in error path. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-02-08mesa: remove _mesa_create_context_for_api()Brian Paul
Just add the gl_api parameter to _mesa_create_context().
2011-02-08st/mesa: fix shader deletion regressionBrian Paul
Fixes a regression from commit 5cbff0932e498f49b57cbb71037b93416bfe30e0. The problem is *some* glDrawPixels fragment programs need to be deleted, but not all. Use an explicit flag to indicate whether or not the program needs to be deleted. This should fix http://bugs.freedesktop.org/show_bug.cgi?id=34049
2011-02-08mesa/st: Plug a fragment program variant parameter leakThomas Hellstrom
Fixes a minor memory leak with the "engine" mesa demo. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-02-08st/mesa: free the temporary bitmap/drawpix shader codeBrian Paul
Fixes a per-shader memory leak when drawing glBitmaps, glDrawPixels or glCopyPixels. NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-02-08mesa/st: Fix vertex buffer leakThomas Hellstrom
Make sure we unreference the vertex buffer pointers in a local array. This fixes huge vertex buffer / memory leaks in mesa demos "fire" and "engine". NOTE: This is a candidate for the 7.9 and 7.10 branches. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-01-28st/mesa: fix texture array dimensionsBrian Paul
For 1D/2D texture arrays use the pipe_resource::array_size field. In OpenGL 1D arrays texture use the height dimension as the array size and 2D array textures use the depth dimension as the array size. Gallium uses a special array_size field instead. When setting up gallium textures or comparing Mesa textures to gallium textures we need to be extra careful that we're comparing the right fields. The new st_gl_texture_dims_to_pipe_dims() function maps OpenGL texture dimensions to gallium texture dimensions and simplifies this quite a bit.
2011-01-28st/mesa: pass layers param to st_texture_create()Brian Paul
2011-01-25st/mesa: support for 1D/2D texture arraysBrian Paul
2011-01-25st/mesa: add comments in emit_wpos()Brian Paul
2011-01-25st/mesa: fix incorrect fragcoord.x translationBrian Paul
emit_adjusted_wpos() needs separate x,y translation values. If we invert Y, we don't want to effect X. Part of the fix for http://bugs.freedesktop.org/show_bug.cgi?id=26795 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-24st/mesa: Enable EXT_texture_format_BGRA8888 for gles1/2Benjamin Franzke
2011-01-24st/mesa: support internalFormat=GL_BGRA in TexImage2DBenjamin Franzke
2011-01-22st/mesa: ensure that all pixel paths operation on linear RGB data, not sRGBBrian Paul
Before, we were converting between linear/sRGB in glReadPixels, glDrawPixels, glAccum, etc if the renderbuffer was an sRGB texture. Those all need to operate on pixel values as-is without conversion. Also, when setting up render-to-texture, if the texture is sRGB the pipe_surface view must be linear RGB. This will change when we support GL_ARB_framebuffer_sRGB. This fixes http://bugs.freedesktop.org/show_bug.cgi?id=33353
2011-01-22st/mesa: update comment, use st_fb_orientation()Brian Paul
2011-01-22st/mesa: comments in update_viewport()Brian Paul
2011-01-20st/mesa: clean up the sampler view format codeBrian Paul
2011-01-20st/mesa: formatting, whitespace fixesBrian Paul
2011-01-17st/mesa: move PIPE_CAP_INDEP_BLEND_FUNC codeBrian Paul
2011-01-16gallium: add EXT_texture_sRGB_decode.Dave Airlie
This uses a sampler view to access the texture with the alternate format. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-15mesa: begin implementation of GL_ARB_draw_buffers_blendBrian Paul
2011-01-15st/mesa: GL_ARB_instanced_arrays supportBrian Paul
2011-01-15st/mesa: move/consolidate an assignmentBrian Paul
2011-01-15Merge branch 'draw-instanced'Brian Paul
Conflicts: src/gallium/auxiliary/draw/draw_llvm.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/glsl/ir_set_program_inouts.cpp src/mesa/tnl/t_vb_program.c
2011-01-13st/mesa: fix a regression from cae2bb76Fredrik Höglund
stObj->pt is null when a TFP texture is passed to st_finalize_texture, and with the changes introduced in the above commit this resulted in a new texture being created and the existing image being copied into it. NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-12st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSEDBrian Paul
Fixes piglit occlusion_query2 failure.
2011-01-09st/mesa: Include mfeatures.h in files that perform feature tests.Vinson Lee
2011-01-06st/mesa: remove unused members in st_contextMarek Olšák
What were these for?
2011-01-06st/mesa: optimize constant buffer uploadsMarek Olšák
The overhead of resource_create, transfer_inline_write, and resource_destroy to upload constant data is very visible with some apps in sysprof, and as such should be eliminated. My approach uses a user buffer to pass a pointer to a driver. This gives the driver the freedom it needs to take the fast path, which may differ for each driver. This commit addresses the same issue as Jakob's one that suballocates out of a big constant buffer, but it also eliminates the copy to the buffer.
2011-01-06st/mesa: do sanity checks on states only in debug buildsMarek Olšák
2011-01-05st/mesa: Include mtypes.h in st_cb_drawpixels.c.Vinson Lee
Include mtypes.h for gl_context symbol.
2011-01-04st/mesa: advertise GL_ARB_half_float_pixelMarek Olšák
This extension doesn't appear to need any driver-specific parts.
2011-01-04st/mesa: skip glDrawPixels/glBitmap-related code for ES buildBrian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32560
2011-01-03st/mesa: fix renderbuffer pointer check in st_Clear()Brian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=30694 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-03st/mesa: 80-column wrappingBrian Paul
2011-01-03st/mesa: 80-column wrappingBrian Paul
2010-12-31st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().Henri Verbeet
2010-12-24st/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.Vinson Lee
2010-12-24st/mesa: Clean up header file inclusion in st_gen_mipmap.h.Vinson Lee
2010-12-24mesa/st: set the color write cbuf property for fragColor writesDave Airlie
2010-12-23st/mesa: do not require all texture formats to be renderableMarek Olšák
This is a bandaid on the problem that if some formats were not renderable (like luminance_alpha), st/mesa fell back to some RGBA format, so basically some non-renderable formats were actually not used at all. This is only a problem with hardware drivers, softpipe can render to anything. Instead, require only RGB8/RGBA8 to be renderable.
2010-12-23st/mesa: use the formats RGB233, ARGB2101010, AL44, AL1616, A16, L16, I16Marek Olšák
2010-12-23st/mesa: if Z32 is unsupported, prefer Z24 to Z16Marek Olšák
2010-12-23st/mesa: use RGBA16 for RGB12 and RGB16Marek Olšák
To provide enough precision if a user wants it.
2010-12-23st/mesa: use DXT SRGB formats for COMPRESSED_SRGBMarek Olšák
And also check if the formats are supported to return something meaningful if compression cannot be used.
2010-12-23st/mesa: Remove unnecessary header.Vinson Lee