summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* r600: update vertex program selection for draw pathAndre Maasikas2009-10-051-5/+35
|
* mesa: fix return value when clipping {Read,Draw}Pixels height <= 0Ben Skeggs2009-10-051-2/+2
| | | | Signed-off-by: Ben Skeggs <[email protected]>
* intel: Suppress a compiler warning for an pointer->int castChris Wilson2009-10-031-3/+2
| | | | | | | | | | | | intel_pixel_read.c: In function ‘do_blit_readpixels’: intel_pixel_read.c:221: warning: cast from pointer to integer of different size Cast via an intermediate (GLintptr) instead and hope the result fits within GLuint... [It should as we simply do not support textures *that* large!] Signed-off-by: Chris Wilson <[email protected]>
* intel: Assert that relocation offsets are within the targetChris Wilson2009-10-031-1/+1
| | | | | | | This should catch the common programming error where we attempt to emit a relocation to beyond the end of the target buffer. Signed-off-by: Chris Wilson <[email protected]>
* prog_parameter: Document the fact that Size may be > 4Nicolai Hähnle2009-10-031-1/+7
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* radeon: Cope better with texture images with no miptrees.Michel Dänzer2009-10-031-2/+7
| | | | Fixes crash with compiz magnifier plugin.
* swrast: Move up state validation in _swrast_ReadPixels.Michel Dänzer2009-10-031-3/+3
| | | | This ensures the driver won't map the wrong set of textures.
* meta: Make sure texImage->TexFormat is valid for CopyTex(Sub)Image.Michel Dänzer2009-10-031-0/+7
|
* mesa: optimized _mesa_meta_BlitFramebuffer() for src=texture caseBrian Paul2009-10-021-0/+130
| | | | | If the src renderbuffer is actually a texture, we can directly use that texture as the src and avoid a copy.
* i965: Use a little stack space to avoid a malloc in wm_get_binding_table.Eric Anholt2009-10-021-3/+1
|
* mesa: Remove another unexplained Flush call, this time from BindFramebuffer.Eric Anholt2009-10-021-3/+0
| | | | | Combined with the previous fix, it takes cairo-gl firefox-talos-gfx time from 120 seconds to 90 seconds on my GM45.
* Revert "Flush driver, not just tnl module."Eric Anholt2009-10-021-26/+0
| | | | | | | | | | This reverts commit df058298e1570eea8712f9bb051f674fab2eaf24. It didn't explain why it was required, doesnt appear to be required, and is a significant performance penalty for cairo-gl firefox. Conflicts: src/mesa/main/fbobject.c
* intel: Remove an unexplained flush from intelClearWithBlit.Eric Anholt2009-10-021-2/+0
|
* r600: remove support for host-based ibsAlex Deucher2009-10-022-150/+80
| | | | | | no longer used now that the hw supports this natively. Also, clean up some formatting.
* mesa/st: don't reuse vertex buffers for bitmap, clear quadsKeith Whitwell2009-10-022-2/+24
| | | | | | | | | | Currently using max_slots > 1 will cause synchronous rendering if the driver flushes its command buffers between one bitmap and the next. Need to improve buffer_write to allow NO_WAIT (as well as no_flush) updates to buffers where we know there is no conflict with previous data.
* gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.Michel Dänzer2009-10-022-3/+2
| | | | | | Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags corresponding to them.
* intel: wrap _mesa_meta_GenerateMipmap()Brian Paul2009-10-021-0/+27
| | | | | | | | Need to check if we'll take the software path so which requires mapping the src texture image. Fixes crash in piglit gen-compressed-teximage, bug 24219. However, the test still does not pass (it may never have).
* mesa: added _mesa_meta_check_generate_mipmap_fallback()Brian Paul2009-10-022-3/+28
|
* i915: Add stub ARB_occlusion_query support under a driconf debug option.Eric Anholt2009-10-012-1/+10
| | | | | This is useful for enabling our GLSL testcases using the 2.0 entrypoints even though we don't have full GL 2.0.
* i915: Add optional support for ARB_fragment_shader under a driconf option.Eric Anholt2009-10-014-3/+15
| | | | | | | | | | Other vendors have enabled ARB_fragment_shader as part of OpenGL 2.0 enablement even on hardware like the 915 with no dynamic branching or dFdx/dFdy support. But for now we'll leave it disabled because we don't do any flattening of ifs or loops, which is rather restrictive. This support is not complete, and may be unstable depending on your shaders. It passes 10/15 of the piglit glsl tests, but hangs on glean glsl1.
* i915: Add support or fallbacks for GLSL fragment shader opcodes.Eric Anholt2009-10-011-4/+158
|
* i915: Add support for varying inputs.Eric Anholt2009-10-012-2/+23
|
* i915: Enable ARB_vertex_shader for both i915 and i830.Eric Anholt2009-10-014-4/+45
| | | | | | Since the TNL is all done in software anyway, it should be the same to the user who's probably using ARB_vertex_program otherwise, but gives them a nicer programming environment.
* i915: Increase maximum program size to the hardware limits.Eric Anholt2009-10-012-7/+16
| | | | | | This fixes potential heap trashing if the program of choice exceeds limits, and fixes the native instructions limit being lower than what can be used by valid programs.
* i915: Update and translate the fragment program along with state updates.Eric Anholt2009-10-014-14/+26
| | | | | | | Previously, we were doing it in the midst of the pipeline run, which gave an opportunity to enable/disable fallbacks, which is certainly the wrong time to be doing so. This manifested itself in a NULL dereference for PutRow after transitioning out of a fallback during a run_pipeline in glean glsl1.
* Revert "i915: don't validate PS program when falling back to software"Eric Anholt2009-10-011-2/+1
| | | | | | | This reverts commit e7044d552c6d16389447880b8744a51de1cf0199. It prevented the driver from ever recovering from a software fallback due to a program error. The original bug it claimed to fix doesn't appear to exist post-revert.
* i915: Bail when the fragment program has too many total instructions.Eric Anholt2009-10-011-0/+10
| | | | Previously, we'd go trashing the heap.
* i915: Let i915_program_error take a format string, and don't use _mesa_problem.Eric Anholt2009-10-013-12/+24
| | | | | | It's misleading to report things like the program having too many native instructions as a Mesa implementation error, when the program may just be too big for the hardware.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-10-0111-86/+172
|\
| * mesa: Return -FLT_MAX instead of 0 for LG2(0).Vinson Lee2009-10-011-1/+1
| | | | | | | | | | lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).
| * i965: Fix massive memory allocation for streaming texture usage.Eric Anholt2009-09-303-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | Once we've freed a miptree, we won't see any more state cache requests that would hit the things that pointed at it until we've let the miptree get released back into the BO cache to be reused. By leaving those surface state and binding table pointers that pointed at it around, we would end up with up to (500 * texture size) in memory uselessly consumed by the state cache. Bug #20057 Bug #23530
| * glsl: regenerated fileBrian Paul2009-09-291-49/+57
| |
| * glsl: rewrite sqrt(x) intrinsic to handle x=0Brian Paul2009-09-291-34/+42
| | | | | | | | | | | | Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a divide by zero if x=0 and wind up with unpredictable results. Now use CMP instruction to test for x<=0 and return zero in that case.
| * glsl: add support for CMP instructionBrian Paul2009-09-294-0/+4
| |
| * mesa/xlib: fix GLX_RENDER_TYPE queryBrian Paul2009-09-291-2/+2
| | | | | | | | Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
* | mesa: better debug messageBrian Paul2009-10-011-1/+1
| |
* | gallium: remove depth.occlusion_count flagKeith Whitwell2009-10-011-4/+0
| | | | | | | | | | | | | | This was redundant as drivers can just keep track of whether they are inside a begin/end query pair. We want to add more query types later and also support nested queries, none of which map well onto a flag like this. No driver appeared to be using the flag.
* | st/mesa: fix non-mipmap lastLevel calculation.Cooper Yuan2009-10-011-1/+5
| | | | | | | | reviewed by Brian Paul.
* | mesa/main: New feature FEATURE_beginend.Chia-I Wu2009-09-3010-10/+184
| | | | | | | | | | This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
* | mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu2009-09-309-86/+110
| | | | | | | | | | As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu2009-09-309-131/+114
| | | | | | | | | | As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_queryobj.Chia-I Wu2009-09-309-75/+79
| | | | | | | | | | It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and follows the feature conventions.
* | mesa/main: New feature FEATURE_arrayelt.Chia-I Wu2009-09-308-11/+73
| | | | | | | | This allows the removal of AEcontext.
* | mesa/main: Make FEATURE_texgen follow feature conventions.Chia-I Wu2009-09-303-37/+54
| | | | | | | | | | As shown in mfeatures.h, this allows users of texgen.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_feedback follow feature conventions.Chia-I Wu2009-09-304-50/+70
| | | | | | | | | | As shown in mfeatures.h, this allows users of feedback.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_drawpix follow feature conventions.Chia-I Wu2009-09-303-29/+42
| | | | | | | | | | As shown in mfeatures.h, this allows users of drawpix.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_rastpos.Chia-I Wu2009-09-305-254/+133
| | | | | | | | | | It is separated from FEATURE_drawpix and made to follow the feature conventions.
* | mesa/main: Make FEATURE_histogram follow feature conventions.Chia-I Wu2009-09-304-65/+47
| | | | | | | | | | As shown in mfeatures.h, this allows users of histogram.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_attrib_stack follow feature conventions.Chia-I Wu2009-09-304-25/+47
| | | | | | | | | | As shown in mfeatures.h, this allows users of attrib.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_accum follow feature conventions.Chia-I Wu2009-09-304-23/+45
| | | | | | | | | | As shown in mfeatures.h, this allows users of accum.h to work without knowing if the feature is available.