summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Fix delayed state flagging for EXT_sso-related program changes.Eric Anholt2010-11-061-18/+5
| | | | | | | Flushing the vertices after having already updated the state doesn't do any good. Fixes useshaderprogram-flushverts-1. As a side effect, by moving it to the right place we end up skipping no-op state changes for traditional glUseProgram.
* meta: Don't try to disable cube maps if the driver doesn't expose the extension.Francisco Jerez2010-11-061-1/+2
| | | | Signed-off-by: Brian Paul <[email protected]>
* vbo: Avoid unnecessary copy to/from current in vertex format upgrade.Francisco Jerez2010-11-062-48/+63
| | | | | | | | | | | | | | | | | Rebuilding the vertex format from scratch every time we see a new vertex attribute is rather costly, new attributes can be appended at the end avoiding a copy to current and then back again, and the full attr pointer recalculation. In the not so likely case of an already existing attribute having its size increased the old behavior is preserved, this could be optimized more, not sure if it's worth it. It's a modest improvement in FlightGear (that game punishes the VBO module pretty hard in general, framerate goes from some 46 FPS to 50 FPS with the nouveau classic driver). Signed-off-by: Brian Paul <[email protected]>
* scons: Unify state tracker SConscriptsJakob Bornecrantz2010-11-054-22/+31
|
* scons: Move dependancy checks to the main gallium scons fileJakob Bornecrantz2010-11-057-75/+69
|
* scons: Check for libdrm_[intel|radeon] as wellJakob Bornecrantz2010-11-051-15/+25
| | | | | And run SConscripts if they are present. Also make dri depend on both drm and x11.
* scons: DetabifyJakob Bornecrantz2010-11-059-123/+122
| | | | Drivers scons files for a later time
* scons: Remove old pipebuffer SConscriptJakob Bornecrantz2010-11-051-18/+0
|
* softpipe: disable vertex texturing with draw/llvmBrian Paul2010-11-051-0/+5
| | | | | This is a temporary work around to prevent crashes with glean/glsl1 (for example) which try to do vertex shader texturing.
* gallivm: add const qualifiers, fix comment stringBrian Paul2010-11-051-4/+4
|
* gallivm: alloca() was called too often for temporary arraysBrian Paul2010-11-051-0/+2
| | | | | | Need to increment the array index to point to the last value. Before, we were calling lp_build_array_alloca() over and over for no reason.
* i965: Silence uninitialized variable warning.Vinson Lee2010-11-041-1/+1
| | | | | | | Silences this GCC warning. brw_wm_fp.c: In function 'brw_wm_pass_fp': brw_wm_fp.c:966: warning: 'last_inst' may be used uninitialized in this function brw_wm_fp.c:966: note: 'last_inst' was declared here
* i965: Silence uninitialized variable warning.Vinson Lee2010-11-041-1/+1
| | | | | | Silences this GCC warning. brw_wm_fp.c: In function 'precalc_tex': brw_wm_fp.c:666: warning: 'tmpcoord.Index' may be used uninitialized in this function
* r300/compiler: Move declaration before code.Vinson Lee2010-11-041-5/+6
| | | | | | Fixes this GCC warning with linux-x86 build. radeon_dataflow.c: In function 'get_readers_normal_read_callback': radeon_dataflow.c:472: warning: ISO C90 forbids mixed declarations and code
* llvmpipe: added some debug assertions, but disabledBrian Paul2010-11-041-0/+10
|
* r300/compiler: Move declaration before code.Vinson Lee2010-11-041-2/+3
| | | | | | Fixes this GCC warning with linux-x86 build. radeon_pair_schedule.c: In function 'merge_presub_sources': radeon_pair_schedule.c:312: warning: ISO C90 forbids mixed declarations and code
* meta: Fix incorrect rendering of the bitmap alpha component.Francisco Jerez2010-11-041-3/+9
| | | | Signed-off-by: Brian Paul <[email protected]>
* meta: Don't leak alpha function/reference value changes.Francisco Jerez2010-11-041-0/+5
| | | | Signed-off-by: Brian Paul <[email protected]>
* tgsi: remove unused functionBrian Paul2010-11-041-11/+0
|
* st/mesa: Reset the constant buffers before destroying the pipe context.Tilman Sauerbeck2010-11-041-0/+5
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* gallivm: implement execution mask for scatter storesBrian Paul2010-11-041-7/+34
|
* gallivm: added lp_elem_type()Brian Paul2010-11-042-0/+20
|
* gallivm: add pixel offsets in scatter storesBrian Paul2010-11-041-2/+18
| | | | | We want to do the scatter store to sequential locations in memory for the vector of pixels we're processing in SOA format.
* gallivm: added debug code to dump temp registersBrian Paul2010-11-041-0/+51
|
* graw/gdi: Fix window dimensions.Michal Krol2010-11-041-3/+8
| | | | | | The requested window size is of the client area, so account for surrounding borders and bars when creating the window.
* scons: Hook-up graw-gdi target.Michal Krol2010-11-041-0/+1
|
* graw/gdi: Initial commit.Michal Krol2010-11-042-0/+194
|
* r300g: Do not use buf param before checking for NULL.Guillermo S. Romero2010-11-041-1/+1
| | | | | | | Commit 8dfafbf0861fe3d2542332658dd5493851053c78 forgot to update r300g. There is a buf == NULL check, but buf is used before for var init. Tested-by: Guillermo S. Romero <[email protected]>
* tgsi/build: Reduce interface clutter.Michal Krol2010-11-042-541/+367
| | | | Make private those functions that are used internally only.
* tgsi/exec: Get rid of obsolete condition codes.Michal Krol2010-11-042-33/+4
|
* tgsi/exec: Cleanup the remaining arithmetic instructions.Michal Krol2010-11-041-378/+413
| | | | As a result remove some nasty macros.
* dri/nouveau: Silence uninitialized variable warning.Vinson Lee2010-11-031-0/+5
| | | | | | | Fixes this GCC warning. nouveau_vbo_t.c: In function 'nv10_vbo_render_prims': nouveau_render_t.c:161: warning: 'max_out' may be used uninitialized in this function nouveau_render_t.c:161: note: 'max_out' was declared here
* gallivm: add some LLVM var labelsBrian Paul2010-11-031-6/+6
|
* gallivm: implement scatter stores into temp register fileBrian Paul2010-11-031-4/+47
| | | | | Something is not quite right, however. The piglit tests mentioned in fd.o bug 31226 still don't pass.
* ir_reader: Fix some potential NULL pointer dereferences.Kenneth Graunke2010-11-031-4/+4
| | | | Found by inspection.
* ir_reader: Remove useless error check.Kenneth Graunke2010-11-031-6/+0
| | | | | It's already been determined that length == 3, so clearly swiz->next is a valid S-Expression.
* ir_reader: Return a specific ir_dereference variant.Kenneth Graunke2010-11-031-6/+9
| | | | | There's really no reason to return the base class when we have more specific information about what type it is.
* glsl: Don't print a useless space at the end of an S-Expression list.Kenneth Graunke2010-11-031-1/+2
| | | | | | We really only want to print spaces -between- elements, not after each element. This cleans up error messages from IR reader, making them (mildly) easier to read.
* Refresh autogenerated file builtin_function.cpp.Kenneth Graunke2010-11-031-24/+9
|
* glsl/builtins: Clean up some ugly autogenerated code in atan.Kenneth Graunke2010-11-031-20/+5
| | | | | | In particular, calling the abs function is silly, since there's already an expression opcode for that. Also, assigning to temporaries then assigning those to the final location is rather redundant.
* glsl/builtins: Rename 'x' to 'y_over_x' in atan(float) implementation.Kenneth Graunke2010-11-031-4/+4
| | | | For consistency with the vec2/vec3/vec4 variants.
* r600g: Swap the util_blitter_destroy call order.José Fonseca2010-11-031-2/+3
| | | | | | | | | | Trivial change that avoids a segmentation fault when the blitter state happens to be bound when the context is destroyed. The free calls should probably removed altogether in the future -- the responsibility to destroy the state atoms lies with whoever created it, and the safest thing for the pipe driver is to not touch any bound state in its destructor.
* mesa: code to unpack RGBA as uintsBrian Paul2010-11-032-0/+787
|
* xorg/vmwgfx: Link libkms when available.José Fonseca2010-11-031-0/+3
|
* st/xorg: Detect libkms with scons too.José Fonseca2010-11-031-0/+3
|
* st/xorg: Add missing \n to error message.José Fonseca2010-11-031-1/+1
|
* xorg/vmwgfx: Add missing source file to SConscript.José Fonseca2010-11-031-0/+1
|
* intel: Remove leftover dri1 locking fields in the context.Eric Anholt2010-11-031-3/+0
|
* intel: Remove duplicated teximage miptree to object miptree promotion.Eric Anholt2010-11-031-15/+0
| | | | | intel_finalize_mipmap_tree() does this optimization too, just more aggressively.
* intel: Avoid taking logbase2 of several things that we max.Eric Anholt2010-11-031-5/+1
| | | | | | logbase2(max(width, height, depth)) == max(logbase2(width), logbase2(height), logbase2(depth)), but in 60 bytes less code.