summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-03-23dri: make unresolved symbol test link work even without a libGL.soLuca Barbieri
Currently the test link uses -lGL to define the glapi symbols. This makes it impossible to build DRI drivers on systems without Mesa installed and without building the libGL from the Mesa tree first. Some automated build systems trigger this problem. This commit removes -lGL and instead adds a dummy implementation of glapi to dri_test.c This, along with Kristian's commit, should fix all known regressions due to the addition of unresolved symbol checking.
2010-03-23i965: Stop abusing ctx->NewState flags for storing driver internal changes.Eric Anholt
We're still abusing the flags by putting them where our driver stores ctx->NewState changes. Making them into more restricted state change flags would be a project for later. Fixes a failure where calling intel_draw_buffer() too often would trip up Mesa assertions about when Mesa state could get changed, when it hadn't. Bug #27034.
2010-03-23dri: Add $(DRI_LIB_DEPS) when linking the test binaryKristian Høgsberg
This will make sure we pick up libdrm_$(chipset).so from the right place.
2010-03-23i965: Stop abusing ctx->NewState flags for storing driver internal changes.Eric Anholt
We're still abusing the flags by putting them where our driver stores ctx->NewState changes. Making them into more restricted state change flags would be a project for later. Fixes a failure where calling intel_draw_buffer() too often would trip up Mesa assertions about when Mesa state could get changed, when it hadn't. Bug #27034.
2010-03-23mesa: Also print _NEW_STENCIL in _mesa_print_state()Kristian Høgsberg
2010-03-23st/mesa: make st_manager.c set have[Stencil|Depth]Buffer only if bits > 0Luca Barbieri
Fixes a segfault when clearing a non-existent stencil buffer.
2010-03-23dri: use mv -f instead of mv to ensure no prompting occursLuca Barbieri
Using just mv may cause prompts on some systems/configurations.
2010-03-23dri: test whether the built drivers have unresolved symbolsLuca Barbieri
This is a different approach to solving this problem that the patch I previously posted, and unlike that, should not cause any problems. Right now undefined symbols in DRI drivers will still allow the build to succeed. As a result, people modifying drivers they cannot test risk creating unloadable drivers with no easy way of automatically avoiding it. For instance, the modifications to nv50 for context transfers caused such an issue recently. Unfortunately, just adding -Wl,--no-undefined doesn't work, because the DRI drivers depend on glapi symbols, but do not depend on libGL.so.1 Adding -lGL is not the correct solution since DRI drivers are not loaded just by libGL, but also by X and possibly by other clients. So, this patch simply tries to build an executable linked to the DRI driver and to libGL. If the DRI driver contains any undefined symbols not satisfied by its dependencies or by libGL, this will fail. This solution does not alter the built drivers, and does not significantly slow down the build process. All classic DRI drivers as well as all the Gallium drivers with configure options compiled successfully with this change. Thanks to Xavier Chantry <chantry.xavier@gmail.com> and Michel Daenzer <michel@daenzer.net> for helping with this. Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> Acked-by: Brian Paul <brian.e.paul@gmail.com>
2010-03-22mesa: set version string to 7.8-rc2Ian Romanick
2010-03-22i965: Add disasm for SNB MATH opcode.Eric Anholt
2010-03-22i965: Enable normal clipping on SNB.Eric Anholt
Rejecting all doesn't seem to be helping get the pipeline lit up.
2010-03-22i965: Force single program flow in SNB GS, to match gen4 GS.Eric Anholt
2010-03-22i965: Correct copy and wasted field shifts for SNB GS URB.Eric Anholt
2010-03-22i965: Enable VS on SNB.Eric Anholt
It appears that the thing that was killing VS threads was the gratuitous NOP that replaced the gratuitous jump from OPCODE_END to the nearby OPCODE_END implementation. With that gone, we can move on to the rest of the pipeline.
2010-03-22i965: Remove gratuitous jump or nop from OPCODE_END to vertex emit.Eric Anholt
Just emit the URB write at END time. Subroutine code that sits after OPCODE_END won't be executed since we've ended the thread at the point that the URB write is done.
2010-03-22i965: Ignore execution mask for the mov(m0, g0) of VS URB write header on SNB.Eric Anholt
Otherwise, we may not get the FFTID set up which would break freeing of resources.
2010-03-22i965: Allow FS constants to be used as immediates instead of push/pull.Eric Anholt
The hope is to later take advantage of the reduced constant usage to free up regs. This only covers the GLSL path at the moment, because the brw_wm_emit path doesn't get the information as to whether a float value is a constant or a uniform.
2010-03-22i965: Add INTEL_DEBUG=glsl_force to force brw_wm_glsl.c.Eric Anholt
I keep finding the desire to force this path to debug it instead of cooking up goofy-looking testcases to do so.
2010-03-22i965: Optimize OPCODE_CMP by using BRW_SEL to choose results.Eric Anholt
Tested with piglit glsl-fs-sqrt-branch, fp-cmp.vpfp.
2010-03-22st/mesa: rename st_framebuffer() to st_ws_framebuffer()Brian Paul
Be clear that this function is not just a cast wrapper.
2010-03-22intel: Call intel_prepare_render() before looking up regions.Kristian Høgsberg
Fixes #27213.
2010-03-22intel: Call intel_prepare_render() before looking up regions.Kristian Høgsberg
Fixes #27213.
2010-03-22st/mesa: Remove unnecessary headers.Vinson Lee
2010-03-22glslcompiler: fix build againBrian Paul
Simply use the libglapi.a archive instead of individual .o files. Fixes the non-debug build.
2010-03-22dri/nouveau: Rectangle texture fixes.Francisco Jerez
2010-03-22dri/nouveau: Some render to texture fixes.Francisco Jerez
2010-03-22dri/nouveau: Fix swrast fallbacks when the read and draw buffers aren't the ↵Francisco Jerez
same.
2010-03-22dri/nouveau: Expose EXT_framebuffer_blit.Francisco Jerez
2010-03-22dri/nouveau: Plug in some mesa_meta functions instead of the swrast variants.Francisco Jerez
2010-03-22dri/nouveau: Emit dirty states on nouveau_validate_framebuffer.Francisco Jerez
Fixes broken intermediate frames when a window is being resized (regression caused by 878eef8c4).
2010-03-22glslcompiler: fix build breakageBrian Paul
2010-03-22Merge branch '7.8'Brian Paul
Conflicts: src/gallium/drivers/cell/ppu/cell_screen.c src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-22glslcompiler: fix build breakageBrian Paul
2010-03-22mesa: remove return, do as the comment saysBrian Paul
2010-03-22mesa: Add end of line to the end of a debug output.Pauli Nieminen
2010-03-21r200: Fix emit size prediction to account elt splitting.Pauli Nieminen
Emit sizes prediction didn't account for render splitting in hwtnl path.
2010-03-21r200: Don't flush when closing elts in KMS.Pauli Nieminen
Flush in middle of rendering in KMS is not allowed because buffers are discarded in flush. Fixes crash when emiting split indices with RADEON_DEBUG=all.
2010-03-21r200: Fix swtnl fallback to flush pending rendering before transition.Pauli Nieminen
Flush after transition would emit wrong state that could cause wrong state emited for pending rendering operation. Fixes wan once from extrement tuxracer that is using per vertex materials.
2010-03-21r200: Fix mixed indetion in r200TclFallback.Pauli Nieminen
2010-03-21rename dri_sw to drisw_util for consistencyGeorge Sapountzis
2010-03-21dri_inteface: add define for checking presence of drm.hGeorge Sapountzis
__NOT_HAVE_DRM_H is a like a feature, defined by default on specific platforms and allows to be defined externally as well. __NOT_HAVE_DRM_H should only be used by xserver and mesa swrast_dri drivers
2010-03-21vbo: Fix vbo_split_copy to pass correct max_index to draw.Pauli Nieminen
vbo_split_copy was passing one past the max_index to draw function which caused _tnl_draw_prims function to read uninitialized values from copied array. Bug was spoted in valgrind report of progs/tests/cva_huge.
2010-03-21dri/nouveau: Reemit the light model state when lighting goes on/off.Francisco Jerez
2010-03-21dri/nouveau: Random cleanups.Francisco Jerez
2010-03-21Merge remote branch 'origin/gallium-st-api-dri'Chia-I Wu
2010-03-21r300/compiler: fix assertion failure in the r500-fragprog emission pathMarek Olšák
2010-03-20mesa: added GL3 query for GL_TEXTURE_SHARED_SIZEBrian Paul
2010-03-20mesa: added missing glGet query for GL_MAX_ARRAY_TEXTURE_LAYERS_EXTBrian Paul
2010-03-20mesa: added new GL3 buffer object queriesBrian Paul
And clean up the error checking code.
2010-03-20mesa: added GL3 buffer attachment aliasesBrian Paul