summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: Remove unnecessary header.Vinson Lee2010-05-131-1/+0
|
* mesa/st: Expose pipe driver's shader limits.José Fonseca2010-05-121-89/+19
|
* st/mesa: Do not use draw module in OpenGL ES build.Chia-I Wu2010-05-121-0/+2
| | | | | | | | This removes references to symbols in draw module for OpenGL ES build. As OpenGL ES does not support feedback/selection mode, draw module is used in pathes that will never be reached. However, if the symbols are referenced, it will bloat the final shared libraries unnecessarily. This is serious when LLVM is enabled.
* st/mesa: Make st_cb_drawtex.h FEATURE_OES_draw_texture aware.Chia-I Wu2010-05-123-13/+26
| | | | | This change allows st_cb_drawtex.h to be used without knowing if FEATURE_OES_draw_texture is enabled.
* st/mesa: Make st_cb_blit.h FEATURE_EXT_framebuffer_blit aware.Chia-I Wu2010-05-123-9/+14
| | | | | This change allows st_cb_blit.h to be used without knowing if FEATURE_EXT_framebuffer_blit is enabled.
* st/mesa: Make st_cb_queryobj.h FEATURE_queryobj aware.Chia-I Wu2010-05-123-2/+15
| | | | | This change allows st_cb_queryobj.h to be used without knowing if FEATURE_queryobj is enabled.
* st/mesa: Make FEATURE_feedback and FEATURE_rastpos more modular.Chia-I Wu2010-05-126-21/+50
| | | | | | Make st_cb_feedback.h FEATURE_feedback aware and st_cb_rastpos.h FEATURE_rastpos aware. Move creation of selection/feedback draw context to st_init_draw.
* st/mesa: Make st_cb_{bitmap,drawpixels}.h FEATURE_drawpix aware.Chia-I Wu2010-05-126-10/+60
| | | | | This change allows st_cb_{bitmap,drawpixels}.h to be used without knowing if FEATURE_drawpix is enabled.
* st/mesa: Make st_cb_accum.h FEATURE_accum aware.Chia-I Wu2010-05-123-2/+22
| | | | | This change allows st_cb_accum.h to be used without knowing if FEATURE_accum is enabled.
* mesa: Make FEATURE_EXT_transform_feedback more modular.Chia-I Wu2010-05-123-4/+14
| | | | | | This allows transformfeedback.h and st_cb_xformfb.h to be included and used without knowing if FEATURE_EXT_transform_feedback is enabled. Fix build of ES overlay.
* st/mesa: update query code for transform feedbackBrian Paul2010-05-112-3/+26
|
* mesa/st+tgsi: Provide a free callback to match with ureg_get_tokens().José Fonseca2010-05-111-2/+2
| | | | | | This fixes crashes with the memory debugging routines on Windows. NOTE: This is a candidate for the 7.8 stable branch
* st/mesa: Remove unnecessary header.Vinson Lee2010-05-111-1/+0
|
* mesa/st: Remove internal flushes from Mesa state tracker.José Fonseca2010-05-1113-248/+29
| | | | | | | | | | | | | | | Now that transfers are context operations it is the driver's responsibility to ensure that transfers happen in order with all other context operations, so flushes and finishes inside Mesa should be no longer necessary. The attached patch implements that. This should proportionate significant improvements for hardware drivers which are able to stream transfers in the command buffers. You can use the softpipe/llvmpipe_flush_resource() as reference implementation of the worst case scenario, where the driver is not able to streamline transfers. But the expectation is that driver implementators will want to avoid flushing as much as possible.
* mesa: more transform feedback infrastructureBrian Paul2010-05-103-0/+172
| | | | | Includes GL_ARB_transform_feedback2 which encapsulates transform feedback state in objects.
* st/mesa: rename vars, added commentsBrian Paul2010-05-101-21/+55
|
* st/mesa: only set prevInstWrotePsiz if translating a vertex programBrian Paul2010-05-101-1/+1
|
* st/mesa: additional assertions in dst_register()Brian Paul2010-05-101-0/+10
|
* st/mesa: Ignore internal_format in st_context_teximage.Chia-I Wu2010-05-091-1/+10
| | | | | | | When internal_format and tex->format differ, st_finailize_texture will surface_copy between surfaces with different formats. This commit works around the issue by ignoring internal_format. A sane fix is needed here.
* st/mesa: fix compressed mipmap generation for small image sizesBrian Paul2010-05-061-2/+24
| | | | | | | When the mipmap level is smaller than the compression block width, height we need to fill in / replicate pixels so that we don't get garbage values. Fixes piglit gen-compressed-teximage test.
* st/mesa: fix bug in compute_num_levels()Brian Paul2010-05-061-5/+7
| | | | | Fix more fall-out from the "ignore BaseLevel" change. This may help with fd.o bug 27991.
* st/mesa: when copying mipmap levels between textures, start at BaseLevelBrian Paul2010-05-061-1/+1
| | | | | | Saves some work and avoids potential issue with inconsistant mipmap level sizes. As long as the mipmap levels from BaseLevel to MaxLevel are consistant, we don't care about the other levels.
* st/mesa: fix per-vertex point sizeMarek Olšák2010-05-051-1/+1
| | | | This fixes FDO bug #27343.
* st/mesa: Remove unnecessary headers.Vinson Lee2010-05-051-6/+0
|
* st/mesa: Fix texture-from-pixmap.Chia-I Wu2010-05-052-6/+30
| | | | | | Remember the size of the level=0 mipmap image. Do not call util_format_get_component_bits when st_context_teximage is called to release a texture image.
* st/mesa: remove commented-out struct fieldBrian Paul2010-05-041-1/+0
|
* st/mesa: need to pass srcLevel to st_texture_image_copy()Brian Paul2010-05-043-7/+6
| | | | Fixes a regression in mipmap setup.
* st/mesa: return success/fail from guess_and_alloc_texture()Brian Paul2010-05-041-7/+10
| | | | | | Before we looked at stObj->pt to see if we may have run out of memory, but that's not a good indicator. This fixes the spurious GL_OUT_OF_MEMORY errors that could arise before.
* st/mesa: improved st_texture_image_copy()Brian Paul2010-05-041-29/+47
| | | | | | | No longer need to search for the src mipmap level. Added assertions. Updated comments. Moved debug code into separate function.
* mesa/st: Fill in native program limits.José Fonseca2010-05-041-0/+91
| | | | | | | In the lack of more fine grained capabilities in Gallium, assume that if the pipe driver supports GLSL then native limits match Mesa software limits. (cherry picked from commit 40a90cd11234a09c2477f5c9984dd6d9fac3f52c)
* gallium: move surface utility functions into u_surface.cBrian Paul2010-05-031-0/+1
| | | | This is a better place than in u_rect.c
* st/mesa: remove dead codeBrian Paul2010-05-031-9/+0
|
* st/mesa: remove unused needFlush parameter to st_finalize_texture()Brian Paul2010-05-034-13/+7
|
* st/mesa: updated comments and fix some formatting in texture storage codeBrian Paul2010-05-031-13/+18
|
* st/mesa: rename srcImageStride -> srcRowStride and fix-up formattingBrian Paul2010-05-031-8/+8
|
* st/mesa: consolidate and clean-up texture memory allocation codeBrian Paul2010-05-031-22/+11
|
* st/mesa: updated comments for st_texture_image_map()Brian Paul2010-05-031-4/+6
|
* st/mesa: move some texture size calculation codeBrian Paul2010-05-031-10/+6
|
* st/mesa: remove old convolution-related vars and min pitch codeBrian Paul2010-05-031-15/+2
|
* st/mesa: remove unsupported convolution codeBrian Paul2010-05-031-10/+6
|
* st/mesa: updated commentBrian Paul2010-05-031-4/+5
|
* st/mesa: remove dead codeBrian Paul2010-05-031-18/+0
|
* st/mesa: restore original last_layer comparisonBrian Paul2010-05-031-1/+1
| | | | | | | | | | | | | Commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 changed the original less-than test to a not-equal test. This was an effort to save some memory by switching the texture layout to a non-mipmapped layout when we mis-guessed about the original layout (thus saving some memory). However, this causes us to hit a new (apparently broken) code path when copying the old texture's data to the new texture. Simply undo this change for the time being until the other/new bug is fixed. Fixes fd.o bug 27933.
* Merge branch 'gles2-2'Kristian Høgsberg2010-05-023-1/+340
|\ | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.h
| * st/mesa: Create context for API_OPENGL as first priorityKristian Høgsberg2010-05-021-4/+4
| |
| * st/mesa: Move st_cb_drawtex.c to the mesa state trackerKristian Høgsberg2010-04-282-0/+330
| |
| * st/mesa: Use API-aware context constructorKristian Høgsberg2010-04-221-1/+10
| | | | | | | | | | | | 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.
* | st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium texturesBrian Paul2010-04-307-81/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | st/mesa: remove unused/disabled codeBrian Paul2010-04-292-48/+0
| |
* | st/mesa: move/improve Mesa GPU program debuggingBrian Paul2010-04-281-10/+11
| | | | | | | | | | Print the program (plus its parameters) before calling st_translate_mesa_program() in case we die in that function.