summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-09-17glsl: add pass to lower variable array indexing to conditional assignmentsLuca Barbieri
Currenly GLSL happily generates indirect addressing of any kind of arrays. Unfortunately DirectX 9 GPUs are not guaranteed to support any of them in general. This pass fixes that by lowering such constructs to a binary search on the values, followed at the end by vectorized generation of equality masks, and 4 conditional assignments for each mask generation. Note that this requires the ir_binop_equal change so that we can emit SEQ to generate the boolean masks. Unfortunately, ir_structure_splitting is too dumb to turn the resulting constant array references to individual variables, so this will need to be added too before this pass can actually be effective for temps. Several patches in the glsl2-lower-variable-indexing were squashed into this commit. These patches fix bugs in Luca's original implementation, and the individual patches can be seen in that branch. This was done to aid bisecting in the future. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-18r600g: oops got the use_mem_constant the wrong way around.Dave Airlie
this fixes evergreen gears again.
2010-09-17r600g: use calloc for ctx bo allocationsDave Airlie
since the reference code relies on these being NULL.
2010-09-17r600g: fixup map flushing.Dave Airlie
long lived maps were getting removed when they shouldn't this tries to avoid that problem by only adding to the flush list on unmap.
2010-09-17r600g: add upload manager support.Dave Airlie
this add support for the upload manager for uploading user vbo/index buffers. this provides a considerable speedup in q3 type games.
2010-09-17r600g: add winsys bo caching.Dave Airlie
this adds the bo caching layer and uses it for vertex/index/constant bos. ctx needs to take references on hw bos so the flushing works okay, also needs to flush the maps.
2010-09-17r600g: add support for kernel boDave Airlie
this moves to using a pb bufmgr instead of kernel bos directly.
2010-09-17r600g: use malloc bufmgr for constant buffersDave Airlie
2010-09-17r600g: move constant buffer creation behind winsys abstraction.Dave Airlie
this paves the way for moving to pb bufmgrs now.
2010-09-17libgl-xlib: Remove unused st_api_create_OpenGL.Chia-I Wu
st/egl no longer relies on libGL for OpenGL support.
2010-09-17targets/egl: Use C++ compiler to link GL/ES state trackers.Chia-I Wu
Otherwise, applications compiled with C compiler might have trouble using them.
2010-09-17dri/nv10: Fix the CLAMP texture wrap mode.Francisco Jerez
2010-09-16tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0Brian Paul
Basically, change the loop from: do {...} while (--num_inputs != 0) into: while (num_inputs != 0) { ... --num_inputs; } Fixes fd.o bug 29987.
2010-09-17r600g: attempt to abstract kernel bos from pipe driver.Dave Airlie
introduce an abstraction layer between kernel bos and the winsys BOs. this is to allow plugging in pb manager with minimal disruption to pipe driver.
2010-09-17r600g: hide radeon_ctx inside winsys.Dave Airlie
no need for this info to be exported to pipe driver.
2010-09-16gallivm: Remove unnecessary header.Vinson Lee
2010-09-16gallivm: fix wrong return value in bitwise functionsBrian Paul
2010-09-16gallivm: Clamp indirect register indices to file_max.José Fonseca
Prevents crashes with bogus data, or bad shader translation.
2010-09-16gallivm: Start collecting bitwise arithmetic helpers in a new module.José Fonseca
2010-09-16gallivm: Fix address register swizzle.José Fonseca
We're actually doing a double swizzling: indirect_reg->Swizzle[indirect_reg->SwizzleX] instead of simply indirect_reg->SwizzleX
2010-09-16meta: Don't bind the created texture object in init_temp_texture().Francisco Jerez
This function is executed outside _mesa_meta_begin/end(), that means that e.g. _mesa_meta_Bitmap() clobbers the texturing state because it changes the currently active texture object. There's no need to bind the new texture when it's created, it's done again later anyway (from setup_drawpix/copypix_texture()). Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-16mesa: include mfeatures.h in formats.cBrian Paul
Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177.
2010-09-16r300g/swtcl: fix CS overrunMarek Olšák
https://bugs.freedesktop.org/show_bug.cgi?id=29901
2010-09-16dri/nouveau: Cleanup references to the old FBOs on glMakeCurrent().Francisco Jerez
2010-09-16dri/nouveau: Don't reemit the BO state in nouveau_state_emit().Francisco Jerez
2010-09-16dri/nouveau: Don't request a fake front unnecessarily.Francisco Jerez
2010-09-16dri/nouveau: Fix glRenderbufferStorage with DEPTH_COMPONENT as internal format.Francisco Jerez
2010-09-16dri/nouveau: Add some more extensions.Francisco Jerez
2010-09-16dri/nouveau: Update nouveau_class.h.Francisco Jerez
2010-09-16dri/nv04: Fix provoking vertex.Francisco Jerez
2010-09-16dri/nv04: Fix maximum texture size.Francisco Jerez
2010-09-16dri/nv04: Fix up color mask.Francisco Jerez
2010-09-16dri/nv04: Align SIFM transfer dimensions.Francisco Jerez
2010-09-16dri/nv04: Mipmapping fixes.Francisco Jerez
2010-09-16dri/nv04: Fix PGRAPH_ERRORs when running OA.Francisco Jerez
2010-09-16dri/nv04: Enable eng3dm for A8/L8 textures.Andrew Randrianasulu
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-09-16dri/nv04: Don't expose ARB_texture_env_combine/dot3.Andrew Randrianasulu
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-09-16llvmpipe: add DEBUG_FS to dump variant informationKeith Whitwell
2010-09-16llvmpipe: add LP_PERF flag to disable various aspects of rasterizationKeith Whitwell
Allows disabling various operations (mainly texture-related, but will grow) to try & identify bottlenecks. Unlike LP_DEBUG, this is active even in release builds - which is necessary for performance investigation.
2010-09-16gallivm: make lp_build_sample_nop publicKeith Whitwell
2010-09-16gallivm: move i32_vec_type inside the #ifdefBrian Paul
2010-09-16gallivm: fix incorrect vector shuffle datatypeBrian Paul
The permutation vector must always be a vector of int32 values.
2010-09-16nv50: get shader fixups/relocations into working stateChristoph Bumiller
2010-09-16nv50: don't segfault on shaders with 0 instructionsChristoph Bumiller
2010-09-16glsl: Don't print blank (function ...) headers for built-ins.Kenneth Graunke
Fixes a regression caused when I added my GLSL ES support.
2010-09-16glsl: Change from has_builtin_signature to has_user_signature.Kenneth Graunke
The print visitor needs this, and the only existing user can work with has_user_signature just as well.
2010-09-16r600g: Use clamped math for RCP and RSQ.Tilman Sauerbeck
This is likely only correct for OpenGL and not other state trackers. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-16r600g: Fixed a bo leak in r600_blit_state_ps_shader().Tilman Sauerbeck
We would leak the newly created bo if it cannot be mapped. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-16st/xlib: Notify the context when the front/back buffers are swapped.Chia-I Wu
The current context should be notified when the the front/back buffers of the current drawable are swapped. The notification was skipped when xmesa_strict_invalidate is false (the default). This fixes fdo bug #29774.
2010-09-16mesa: Update ES APIspec.xml.Chia-I Wu
Enable some extensions now that the needed tokens are defined in GLES/glext.h and GLES2/glext.h. Update the prototype of MultiDrawArrays now that the prototype of _mesa_MultiDrawArraysEXT has been updated.