summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* r300/compiler: fail to compile if we hit hw limits or an unimplemented featureMarek Olšák2010-08-253-0/+62
| | | | | i.e. relative addressing (mainly FS), saturate modifiers, exceeding the maximum number of constants.
* r300/compiler: handle indexable temporaries correctly in deadcode eliminationMarek Olšák2010-08-251-1/+30
|
* r300/compiler: disable register allocation for indexable temporaries in VSMarek Olšák2010-08-251-5/+25
| | | | | | | If there is relative addressing of temporaries, we cannot change register indices, so skip register allocation entirely. To utilize register allocation at least partially, we need separate indexable and non-indexable register files in both TGSI and Mesa IR.
* r300g: reset the index bias to 0 at the end of CSMarek Olšák2010-08-254-5/+12
|
* ir_to_mesa: set IndirectRegisterFilesMarek Olšák2010-08-251-0/+8
| | | | | | | This fixes relative addressing of temporaries (and maybe others) in all gallium drivers. Acked on irc by Eric Anholt.
* nvfx: Initialize variables on error path.Vinson Lee2010-08-241-0/+4
|
* glsl: Set up uniform initializers by walking the shaders after linking.Eric Anholt2010-08-243-122/+181
| | | | | | | | | | | | | Previously, uniform initializers were handled by ir_to_mesa as it made its Parameters list. However, uniform values are global to all shaders, and the value set in one Parameters list wasn't propagated to the other gl_program->Parameters lists. By going back through the general Mesa uniform handling, we make sure that all gl_programs get updated values, and also successfully separate uniform initializer handling from ir_to_mesa gl_program generation. Fixes: glsl-uniform-initializer-5.
* glsl: Don't dead-code eliminate a uniform initializer.Eric Anholt2010-08-241-0/+8
| | | | Partial fix for glsl-uniform-initializer-5.
* r300g: rename radeong_dri.so to r300_dri.soDave Airlie2010-08-254-5/+5
| | | | acked on irc by Corbin + Marek.
* make: Use C++ compiler to link stdc++ library.Brian Paul2010-08-243-5/+8
| | | | | glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
* configs: Remove -lstdc++ from default.Vinson Lee2010-08-241-1/+1
| | | | | | This patch undoes commit 9b7480cd95c2d1259e23bfb5549cefaa94ebaca1. A follow-on patch will provide the proper fix.
* r600g: Add support for PIPE_FORMAT_R32_FLOAT.Henri Verbeet2010-08-241-0/+3
|
* prog_execute: Implement OPCODE_TXLIan Romanick2010-08-241-0/+16
| | | | Fixes bugzilla #29628
* glsl2: rename local variable_entry classBrian Paul2010-08-241-17/+22
| | | | | | | | | With MSVC it seems that this class and its constructor is colliding with the one in ir_variable_refcount.cpp. Rename the class here to avoid the collision. This is a bit of a hack. Can the two variable_entry classes be merged and shared?
* glsl2: move constructor into .cpp file to work around compiler bugBrian Paul2010-08-242-8/+13
| | | | | | | Fixes fd.o bug 29770 The refcount==0 assertion only failed on some systems. One example being 32-bit Linux with gcc 4.4.4.
* docs: updated info about GLSL compilerBrian Paul2010-08-241-146/+44
| | | | Ian or Eric should review this and add/edit as needed.
* docs: list the new GLSL compilerBrian Paul2010-08-241-0/+3
|
* mesa: added isblank() for MSVCBrian Paul2010-08-241-0/+1
|
* mesa: remove non-existant files from tarball listBrian Paul2010-08-241-5/+0
|
* glsl: Add assert to check variable_entry referenced_count after construction.Vinson Lee2010-08-241-0/+1
| | | | | | | | | | A variable_entry after construction should have its referenced_count member set to 0. However, occassionally this isn't the case and entry->referenced_count has been observed to be a garbage value. This leads to crashes of several tests in the Piglit test suite. This patch adds an assert to check that a variable_entry instance has its referenced_count member initialized to 0 after construction.
* nvfx: Remove unnecessary headers.Vinson Lee2010-08-233-4/+0
|
* glsl: make 'make clean' work properly.Dave Airlie2010-08-241-1/+1
| | | | this has make clean remove all the objects.
* glsl: Silence unused variable warning.Vinson Lee2010-08-231-0/+1
| | | | The variable is used but only in the body of an assert.
* r300g: Remove unused variable.Vinson Lee2010-08-231-2/+0
| | | | | | Fixes this GCC warning. r300_render.c: In function 'r300_draw_flush_vbuf': r300_render.c:988: warning: unused variable 'r300_render'
* st/egl: Fix r300/r600 support in KMS backend.Chia-I Wu2010-08-242-3/+32
| | | | | When the kernel driver name is radeon, ask the loader for r300 or r600 depending on the PCI ID.
* targets/egl: Check against drm_driver_descriptor::name.Chia-I Wu2010-08-243-16/+15
| | | | | | drm_driver_descriptor::driver_name is defined to be the name of the kernel module. We should check against drm_driver_descriptor::name instead of drm_driver_descriptor::driver_name.
* targets/egl: add pipe_r600Benjamin Franzke2010-08-242-0/+40
| | | | | KNOWN ISSUE: eglShowScreenSurfaceMESA in st/egl/kms fails but st/egl/x11 works
* targets/egl: rename pipe_radeon to pipe_r300Benjamin Franzke2010-08-242-8/+8
| | | | | | | | | | | | | | st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now there is also r600g for which st/egl/kms also requests a pipe named "radeon" (possible solution in later commit)
* mesa: Remove extraneous semicolon.Chia-I Wu2010-08-241-1/+1
|
* st/dri: Remove unnecessary main/mtype.h.Chia-I Wu2010-08-241-1/+0
|
* st/wgl: Include main/core.h.Chia-I Wu2010-08-244-7/+3
| | | | Make st/wgl include only main/core.h from core mesa.
* st/glx: Include main/core.h.Chia-I Wu2010-08-245-21/+38
| | | | Make st/glx include only main/core.h from core mesa.
* glsl: Include main/core.h.Chia-I Wu2010-08-2418-30/+16
| | | | Make glsl include only main/core.h from core mesa.
* mesa: Add core.h.Chia-I Wu2010-08-243-47/+81
| | | | | | | | core.h is the public header of core mesa. GLX, WGL, and GLSL are supposed to include this header file. It should be noted that headers included by core.h must not perform feature tests (#if FEATURE_xxx). Otherwise, we cannot, for example, mix a FEATURE_ES2 libmesagallium.a with a FEATURE_GL libglsl.a.
* translate_sse: clear state for each function emissionLuca Barbieri2010-08-241-3/+3
| | | | Fixes #29771.
* glsl: Rely on talloc_autofree_context() instead of trying to free on our own.Eric Anholt2010-08-231-6/+1
| | | | | | | | | | | Because the static types talloc their names at dlopen time, talloc_freeing the types at DRI driver screen teardown means that if the screen gets brought back up again, the names will point at freed memory. talloc_autofree_context() exists to do just what we want here: Free memory referenced across the program's lifetime so that we avoid noise in memory leak checkers. Fixes: bug #29722 (assertion failure in unigine).
* intel: Add support for MAX_SAMPLES=1 EXT_framebuffer_multisample.Eric Anholt2010-08-233-1/+6
| | | | | The spec specifically sets the minimum MAX_SAMPLES at 1 to allow exposing the extension on all implementations, so do so.
* radeon: print chip family for evergreen in renderer stringAlex Deucher2010-08-232-2/+5
|
* r600g: add XPD supportDave Airlie2010-08-241-1/+124
| | | | ported from r600c.
* r600g: add CMP support.Dave Airlie2010-08-241-1/+50
| | | | ported from r600c, fixes fp-cmp, glsl1-sqrt*
* nvfx: don't emit dummy commands on nv30Luca Barbieri2010-08-241-4/+8
| | | | Should fix errors on the original nv30, reported by pmdata.
* glsl: When unable to assign the initializer for a const variable, set it to 0.Eric Anholt2010-08-231-13/+21
| | | | | | | This prevents assertion failures or cascading errors after we've logged the fact that we were unable to handle the initializer. Fixes unsized-array-non-const-index-2.vert
* translate_sse: fix x86-64Luca Barbieri2010-08-231-0/+1
|
* glsl: Cleanly fail when a function has an unknown return type.Eric Anholt2010-08-231-1/+7
| | | | Bug #29608.
* r600g: Add support for PIPE_CAP_DEPTH_CLAMP.Henri Verbeet2010-08-232-3/+4
|
* glsl: Rebuild builtins for any() change.Eric Anholt2010-08-231-3/+3
|
* mesa: Add new ir_unop_any() expression operation.Eric Anholt2010-08-237-3/+41
| | | | | | | The previous any() implementation would generate arg0.x || arg0.y || arg0.z. Having an expression operation for this makes it easy for the backend to generate something easier (DPn + SNE for 915 FS, .any predication on 965 VS)
* glsl: Regenerate builtins with the new sorting.Eric Anholt2010-08-231-5089/+5089
|
* ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.Eric Anholt2010-08-231-1/+1
| | | | Fixes: glsl-fs-any
* glsl: Count function call outvals as writing to variables for linker checks.Eric Anholt2010-08-231-0/+21
| | | | Fixes: glsl-vs-position-outval. Bug #28138 (regnum online)