summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
AgeCommit message (Collapse)Author
2010-05-02Merge branch 'gles2-2'Kristian Høgsberg
Conflicts: src/mesa/drivers/dri/common/dri_util.h
2010-05-02st/mesa: Create context for API_OPENGL as first priorityKristian Høgsberg
2010-05-17gallium: EXT_timer_query support.Mathias Fröhlich
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-05-17st/mesa: call st_flush_bitmap_cache() from st_readpixels()Brian Paul
Fixes regression from commit b0427bedde80e3189524651a327235bdfddbc613. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2010-04-28st/mesa: Move st_cb_drawtex.c to the mesa state trackerKristian Høgsberg
2010-04-22st/mesa: Use API-aware context constructorKristian Høgsberg
The mesa state tracker is currently the only place where we create a context and expect it to implement GLES1/2. Use the API-aware constructor to communicate this to core mesa.
2010-04-21mesa/st: Translate a few more mesa/gallium formats.José Fonseca
These endup used by Xvnc.
2010-04-30st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium texturesBrian Paul
Previously, when we created a gallium texture for a corresponding Mesa texture we'd only allocate space for mipmap levels >= BaseLevel. This patch undoes that mechanism. This fixes a render-to-texture bug when rendering to level 0 when BaseLevel=1. Also, it makes sense to allocate the whole texture object memory when BaseLevel > 0 since a common use of GL_TEXTURE_BASE_LEVEL is to progressively load/render mipmaps. Eventually, the app almost always fills in the level=0 mipmap image. Finally, the texture image code is bit easier to understand now.
2010-04-29st/mesa: remove unused/disabled codeBrian Paul
2010-04-20gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul
2010-04-20Merge branch 'gallium-index-bias'José Fonseca
2010-04-28st/mesa: move/improve Mesa GPU program debuggingBrian Paul
Print the program (plus its parameters) before calling st_translate_mesa_program() in case we die in that function.
2010-04-28st/mesa: add missing debug entry for DEBUG_CONSTANTSBrian Paul
2010-04-28Merge branch '7.8'Brian Paul
Conflicts: src/mesa/state_tracker/st_gen_mipmap.c
2010-04-28st/mesa: fix incorrect RowStride computationBrian Paul
Fixes incorrect stride when getting a compressed tex image.
2010-04-28st/mesa: fill in stImage->level in st_generate_mipmap()Brian Paul
Before, this field was always zero for all the new mipmap levels. Fixes problems with glGetTexImage() from a generated mipmap.
2010-04-27mesa: move/rename is_depth_or_stencil_format()Brian Paul
Put it with other, similar functions.
2010-04-27st/mesa: rename var and update st_choose_format() commentsBrian Paul
2010-04-27st/mesa: call is_format_supported() for compressed formatsBrian Paul
These compressed format switch cases shouldn't be hit if we don't support the compressed texture extensions, but let's be safe and ask the driver if they're supported as we do in other cases.
2010-04-27st/mesa: 80-column wrappingBrian Paul
2010-04-27st/mesa: try to get actual compressed format for GL_COMPRESSED_RGB[A] formatsBrian Paul
2010-04-27st/mesa: fix strides in (de)compress_image() functionsBrian Paul
Mipmap generation for compressed textures works now.
2010-04-26st_api: Remove st_moduleJakob Bornecrantz
The struct st_module isn't needed as it is the same thing as the st_api struct. That is they both represent the API. Instead just use a single function entry point to the the API.
2010-04-23st/mesa: checkpoint WIP: mipmap generation for compressed texturesBrian Paul
Something is wrong with the images strides when compressing/decompressing images...
2010-04-23st/mesa: minor improvements in fallback_generate_mipmap()Brian Paul
2010-04-23st/mesa: remove unneeded #includes and add/update commentsBrian Paul
2010-04-23st/mesa: clean-up: use st_context() everywhereBrian Paul
2010-04-23st/mesa: re-do binding flags in st_ChooseTextureFormat(), againBrian Paul
Try to specify render target bindings flags first. If that fails, try again with just sampler view binding. Note that we try to create the texture resource with render target binding flags later when we allocate the texture. Then, in FBO validation, we check if we can actually render to the textures. If that fails, we generate GL_FRAMEBUFFER_UNSUPPORTED_EXT. Changes suggested by Jose.
2010-04-23st/mesa: replace 'usage' with 'bindings'Brian Paul
2010-04-23st/mesa: replace 'usage' with 'bindings' to be consistentBrian Paul
Plus, update comments and formatting.
2010-04-23st/mesa: don't set RENDER_TARGET/DEPTH_STENCIL flag for compressed texturesBrian Paul
2010-04-23st/mesa: get rid of default_deep_rgba_format()Brian Paul
This special-case code used to be used for the accum buffer but the accum buffer implementation was changed some time ago.
2010-04-23mesa/st: Remove dead members.José Fonseca
2010-04-22st/mesa: assert that binding flags are properly set for drawing surfacesBrian Paul
2010-04-22st/mesa: fix binding flags in st_ChooseTextureFormat()Brian Paul
See comment for more info.
2010-04-22st/mesa: consolidate code for finding supported formatsBrian Paul
2010-04-22st/mesa: refactor depth/stencil format selection codeBrian Paul
2010-04-22Merge branch '7.8'Brian Paul
Conflicts: src/mesa/state_tracker/st_format.c
2010-04-22st/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24Brian Paul
2010-04-19Merge branch '7.8'Jesse Barnes
2010-04-19mesa/st: Update for index bias interface change.José Fonseca
2010-04-19st/mesa: invert scissor rect depending on FB orientationBrian Paul
Fixes fd.o bug 27715
2010-04-19Merge branch '7.8'Brian Paul
Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/drivers/llvmpipe/lp_context.c
2010-04-19gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul
When points or lines are decomposed into triangles, we need to be sure to disable polygon culling, stippling, "un-filled" modes, etc. This patch sets the rasterization state to disable those things prior to drawing points/lines with triangles, then restores the previous state afterward. The new piglit point-no-line-cull test checks this problem & solution.
2010-04-18st/mesa: s/st_get_stobj_texture/st_get_stobj_resource/Brian Paul
2010-04-18st/mesa: s/st_get_texobj_texture/st_get_texobj_resource/Brian Paul
2010-04-18st/mesa: remove st_texture_object::pipe fieldBrian Paul
Just pass the pipe context to st_get_texture_sampler_view() as is done for st_get_renderbuffer_sampler_view().
2010-04-18st/mesa: s/st_renderbuffer_get_sampler_view/st_get_renderbuffer_sampler_view/Brian Paul
2010-04-18st/mesa: s/st_sampler_view_from_texture/st_create_texture_sampler_view/Brian Paul
2010-04-18st/mesa: s/st_get_stobj_sampler_view/st_get_texture_sampler_view/Brian Paul