summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Force GL_SGIS_generate_mipmap to always be enabledIan Romanick2010-09-2714-41/+9
| | | | As per discussions at XDS.
* mesa: Force GL_ARB_copy_buffer to always be enabledIan Romanick2010-09-274-12/+6
| | | | As per discussions at XDS.
* r300/compiler: Fix two mistakes in the presubtract optimization pass.Tom Stellard2010-09-251-14/+31
| | | | | | | | | | | 1. We can't turn an instruction into a presubtract operation if it writes to one of the registers it reads from. 2. If we turn an instruction into a presubtract operation, we can't remove that intruction unless all readers can use the presubtract operation. This fixes fdo bug 30337. This is a candidate for the 7.9 branch.
* swrast: update comments for REMAINDER() macroBrian Paul2010-09-251-2/+5
|
* intel: Remove unnecessary header.Vinson Lee2010-09-251-1/+0
|
* mesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0Dave Airlie2010-09-251-1/+1
| | | | 1acadebd6270d3604b026842b8a21360968618a0 fixed the pointer but not the cast.
* intel: Remove unnecessary headers.Vinson Lee2010-09-242-21/+0
|
* unichrome: Remove unnecessary header.Vinson Lee2010-09-241-1/+0
|
* mesa: Remove unnecessary headers.Vinson Lee2010-09-243-6/+0
|
* intel: Fix implicit declaration of function '_mesa_meta_Bitmap' warning.Vinson Lee2010-09-241-0/+1
| | | | | | Fix this GCC warning. intel_pixel_bitmap.c: In function 'intelBitmap': intel_pixel_bitmap.c:343: warning: implicit declaration of function '_mesa_meta_Bitmap'
* mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.Eric Anholt2010-09-241-1/+1
| | | | Fixes ARB_depth_texture/fbo-generatemipmap-formats.
* intel: Improve some of the miptree debugging.Eric Anholt2010-09-241-2/+11
|
* intel: More reverting of the sw fallback for depth texture border color.Eric Anholt2010-09-241-4/+1
| | | | The rest was done with 9aec1288eeae8e87adc9a99f377be536892941b2
* intel: Add fallback debug to glGenerateMipmap.Eric Anholt2010-09-241-0/+4
|
* intel: Fix segfault on INTEL_DEBUG=fbo with unsupported framebuffers.Eric Anholt2010-09-241-3/+2
|
* i965: Add support for rendering to SARGB8 FBOs.Eric Anholt2010-09-243-0/+9
| | | | | Tested with fbo-generatemipmap-formats GL_EXT_texture_srgb. The test still fails on SLA8, though.
* intel: Corresponding FinishRenderTexture debug to BeginRenderTexture.Eric Anholt2010-09-241-0/+4
|
* intel: Dead comment removal.Eric Anholt2010-09-241-1/+0
|
* r600c: fix mipmap stride on evergreenAlex Deucher2010-09-241-3/+10
| | | | taken from Dave's r600g fix
* st/mesa: use the wrapped renderbuffer in CopyPixels()Brian Paul2010-09-241-1/+11
| | | | | | Fixes assertion failures when copying stencil pixels. NOTE: this is a candidate for the 7.9 branch.
* st/mesa: add missing MESA_FORMAT_S8 case in st_mesa_format_to_pipe_format()Brian Paul2010-09-241-0/+2
| | | | NOTE: this is a candidate for the 7.9 branch.
* mesa: fix assertions to handle srgb formatsBrian Paul2010-09-241-4/+8
| | | | | | http://bugs.freedesktop.org/show_bug.cgi?id=30333 NOTE: This is a candidate for the 7.9 branch.
* i915: Remove a dead if (0) block.Eric Anholt2010-09-231-3/+0
|
* intel: Remove dead intelIsTextureResident().Eric Anholt2010-09-231-18/+0
| | | | | It always returned 1 (GL_TRUE), which is the same thing that happens when the driver hook isn't present.
* unichrome: Mostly revert my convolution removal changes.Eric Anholt2010-09-231-7/+9
| | | | | | For this driver, the minimum pitch alignment stuff does appear to be necessary, so leave the separate munged width/height variable in place.
* radeon: Remove copied minimum pitch alignment code.Eric Anholt2010-09-231-12/+0
| | | | | | This is already covered by radeon_mipmap_tree.c, and my convolution cleanups broke in the presence of this code. Thanks to Marek Olšák for tracking down the relevant miptree code for me.
* intel: Replace my intel_texture_bitmap code with _mesa_meta_Bitmap.Eric Anholt2010-09-231-180/+1
| | | | | The meta code is more general than mine, and appears to pass the same sets of tests (piglit + some oglconform).
* intel: Remove unnecessary minimum pitch alignment to 32 bytes.Eric Anholt2010-09-231-6/+0
| | | | | | This broke with the cleanup I did in convolution removal. It's unnecessary anyway since region_alloc_tiled adjusts pitches for us (64 byte alignment)
* intel: Remove disabled stencil drawpixels acceleration.Eric Anholt2010-09-231-210/+0
| | | | | We still retain the fallback override for GL_STENCIL_INDEX, because the metaops version fails at oglconform.
* mesa: Remove EXT_convolution.Eric Anholt2010-09-2327-2210/+63
| | | | More optional code.
* mesa: Remove SGI_color_matrix.Eric Anholt2010-09-2316-334/+5
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove SGI_color_table.Eric Anholt2010-09-2310-316/+4
| | | | Another optional ARB_imaging subset extension.
* mesa: Remove EXT_histogram.Eric Anholt2010-09-2313-1166/+43
| | | | This has always been optional, and not useful.
* mesa: Remove the non-required ARB_imaging extension.Eric Anholt2010-09-236-22/+15
| | | | | | | Many of the EXT_ extensions in the subset have significant code overhead with no users. It is not a required part of GL -- though text describing the extension is part of the core spec since 1.2, it is always conditional on the ARB_imaging extension.
* egl: fix build since 17eace581d25a626a7d75d9d1205d012cbb14a6eDave Airlie2010-09-231-1/+1
| | | | looks like mesa st didn't get updated.
* dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg2010-09-224-4/+6
| | | | | We will typically have a current context when we need to lookup the image, but the lookup implementation don't need it so drop it.
* i965: Warning fix for vector result any_nequal/all_equal change.Eric Anholt2010-09-221-1/+3
|
* i965: Update expression splitting for the vector-result change to compares.Eric Anholt2010-09-221-8/+9
| | | | | | Fixes: glsl1-precision exp2 glsl1-precision log2
* i965: When splitting vector variable assignment, ignore unset channels.Eric Anholt2010-09-221-2/+5
| | | | | | | | The new checks for sanity in ir_assignment creation got angry about this write_mask == 0. Fixes: glsl-fs-dot-vec2. glsl-fs-atan-2 glsl-fs-dot-vec2
* i965: Fix the vector/expression splitting for the write_mask change.Eric Anholt2010-09-222-7/+1
| | | | +113 piglits.
* ir_to_mesa: Only compare vector_elements present for any_nequal/all_equalEric Anholt2010-09-221-2/+18
| | | | Fixes: glsl-mat-from-int-ctor-03
* glsl: Rework assignments with write_masks to have LHS chan count match RHS.Eric Anholt2010-09-221-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that most people new to this IR are surprised when an assignment to (say) 3 components on the LHS takes 4 components on the RHS. It also makes for quite strange IR output: (assign (constant bool (1)) (x) (var_ref color) (swiz x (var_ref v) )) (assign (constant bool (1)) (y) (var_ref color) (swiz yy (var_ref v) )) (assign (constant bool (1)) (z) (var_ref color) (swiz zzz (var_ref v) )) But even worse, even we get it wrong, as shown by this line of our current step(float, vec4): (assign (constant bool (1)) (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(var_ref edge)))) where we try to assign a float to the writemasked-out x channel and don't supply anything for the actual w channel we're writing. Drivers right now just get lucky since ir_to_mesa spams the float value across all the source channels of a vec4. Instead, the RHS will now have a number of components equal to the number of components actually being written. Hopefully this confuses everyone less, and it also makes codegen for a scalar target simpler. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg2010-09-221-3/+3
| | | | | | | We can't expect to have a context when this is called, and we don't need one so just require a __DRIscreen instead. Reported by Yu Dai <[email protected]>
* intel: Fix GL_ARB_shading_language_120 commitKristian Høgsberg2010-09-222-11/+3
| | | | | | | Fix commit e7087175f8a04f777403366fb34b58edd00f4d60. Move the reference to GL_VERSION_2_1_functions to intel_extensions.c where it's available, don't try to enable a non-existing extension and advertise 1.20 for all intel chipsets, not just GEN4 and up.
* mesa: don't advertise bogus GL_ARB_shading_language_120 extensionBrian Paul2010-09-219-21/+60
| | | | | | | | | | | Instead of using the invalid GL_ARB_shading_language_120 extension to determine the GLSL version, use a new ctx->Const.GLSLVersion field. Updated the intel and r600 drivers, but untested. See fd.o bug 29910 NOTE: This is a candidate for the 7.9 branch (but let's wait and see if there's any regressions).
* i965: Track the windowizer's dispatch for kill pixel, promoted, and OQEric Anholt2010-09-213-6/+23
| | | | | | | | Looks like the problem was we weren't passing the depth to the render target as expected, so the chip would wedge. Fixes GPU hang in occlusion-query-discard. Bug #30097
* i965: Also enable CC statistics when doing OQs.Eric Anholt2010-09-211-3/+4
| | | | This is required by the spec, so respect that.
* i965: Share the KIL_NV implementation between glsl and non-glsl.Eric Anholt2010-09-213-17/+3
|
* Merge branch 'sprite-coord'Brian Paul2010-09-212-12/+19
|\
| * gallium: rework handling of sprite_coord_enable stateBrian Paul2010-09-172-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the pipe_rasterizer_state::sprite_coord_enable field in the draw module (and softpipe) according to what's specified in the documentation. The draw module can now add any number of extra vertex attributes to a post-transformed vertex and generate texcoords for those attributes per sprite_coord_enable. Auto-generated texcoords for sprites only worked for one texcoord unit before. The frag shader gl_PointCoord input is now implemented like any other generic/texcoord attribute. The draw module now needs to be informed about fragment shaders since we need to look at the fragment shader's inputs to know which ones need auto-generated texcoords. Only softpipe has been updated so far.