summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-09-02r600: add TXL instruction and note about TXBHEADmasterAndre Maasikas1-5/+12
2010-09-02r600: remove depth exports move, just set to output x <- z in the export ↵Andre Maasikas1-70/+5
intruction
2010-09-02r600: protect cleanup instructions from double freeAndre Maasikas2-2/+20
We might get the cleanup when we have not translated the shader yet e.g 2 programstringnotifys in a row
2010-09-02r600: remove mask from output intructionsAndre Maasikas6-47/+3
in case of relative addressing we never get to know which comps were really written.
2010-09-02r600: allow relative addressing of temps, inputs, outputsAndre Maasikas1-13/+30
2010-09-02r600: handle LIT writemaskAndre Maasikas1-147/+141
2010-09-02r600: fix rsq from negative inputAndre Maasikas1-0/+3
arbfp specifies rsq of abs value
2010-09-02r600g: fix logicop, the 3d ROP is the 2D rop shifted twice.Dave Airlie1-1/+1
2010-09-02r600g: fix depth texture testsDave Airlie1-2/+2
2010-09-01glsl: Apply implicit conversions to structure constructor parameters.Kenneth Graunke2-3/+10
The code for handling implicit conversions should probably get refactored, but for now, this is easy. Fixes piglit test constructor-26.vert.
2010-09-01glsl: Convert constant record constructor parameters to ir_constants.Kenneth Graunke1-1/+3
I'm not sure if this is strictly necessary, but it seems wise.
2010-09-01glsl: Reject structure constructors that have too many arguments.Kenneth Graunke1-0/+6
Fixes piglit test constructor-27.vert.
2010-09-01glsl2: Remove unnecessary glsl_symbol_table::get_function parameter ↵Ian Romanick3-9/+4
return_constructors Now that constructors are not generated as functions or stored in the symbol table, there is no need to flag whether or not constructors should be returned.
2010-09-01glsl2: Remove unused method glsl_type::generate_constructorIan Romanick2-59/+0
2010-09-01glsl2: Remove unused 'constructor' parameter from glsl_symbol_table::add_typeIan Romanick2-6/+4
2010-09-01glsl2: Don't generate constructor functions for structuresIan Romanick2-3/+2
2010-09-01glsl2: Emit structure constructors inlineIan Romanick1-37/+70
Fixes piglit test cases glsl-[fv]s-all-0[12].
2010-09-02r600g: add missing vertex fetch formats to the translation table.Dave Airlie2-0/+3
fixes at least 2 more piglits.
2010-09-01r600g: fix binding of same texture to several target slotJerome Glisse2-23/+62
One can bind same texture or sampler to different slot, each slot needs it own state. The solution implemented here is not exactly beautifull or optimal need to think to somethings better. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01glsl: Fix write mask in matrix-from-matrix constructors.Kenneth Graunke1-3/+5
If the matrix being constructed was larger than the source matrix, it would overwrite the lower-right part of the matrix with the wrong values, rather than leaving it as the identity matrix. For example, constructing a mat4 from a mat2 should only use a writemask of "xy" when copying from the source, but was using "xyzw". Fixes the code generated by piglit test constructor-23.vert.
2010-09-01glsl: Add proper handling for constant matrix-from-matrix constructors.Kenneth Graunke1-0/+25
Fixes piglit test case constructor-21.vert and changes constructor-22.vert to give the correct output.
2010-09-01glsl: Move generate_constructor_(matrix|vector) to ir_constant ctor.Kenneth Graunke2-99/+36
2010-09-01ast_function: Fix check for "too few components".Kenneth Graunke1-1/+2
This was triggering even for matrix-from-matrix constructors. It is perfectly legal to construct a mat3 from a mat2 - the rest will be filled in by the identity matrix. Changes piglit test constructor-23.vert from FAIL to PASS, but the generated code is incorrect.
2010-09-01ast_function: Remove bogus cases from generate_constructor_matrix.Kenneth Graunke1-29/+8
There are no integer matrix types, so switching on them is silly.
2010-09-02r600g: fix incorrect state naming in pipe_sampler vs pipe_sampler_viewDave Airlie1-1/+1
fixes problems in valgrind with uninitialised values.
2010-09-01ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to a temp.Eric Anholt1-345/+291
Like the constant handling and the handling of other uniforms, we add the whole thing to the Parameters, avoiding messy, incomplete logic for adding just the elements of a builting uniform that get used. This means that a driver that relies only on ParameterValues[] for its parameters will have an increased parameter load, but drivers generally don't do that (since they have other params they need to handle, too). Fixes glsl-fs-statevar-call (testcase for Ember). Bug #29687. Regresses glsl-vs-array-04 on 965. Thanks to a slight change in register allocation, this test of undefined behavior now wraps around the register space and unexpectedly reads the constant value it's trying to compare to. The test should probably not look at the resulting color, since behavior is undefined.
2010-09-01ir_to_mesa: Add a little helper for emitting link failure messages.Eric Anholt1-24/+22
2010-09-01mesa: Fix many printf-like warnings.Eric Anholt4-12/+13
Most of these are just typecasting to long to match the arg type. I don't really care too much about getting a GLsizei or whatever appropriate type in. However, there were a number of real bugs, like missing arguments or passing floats to integer format specifiers. My favorite: printflike("%s, argument") is missing an argument.
2010-09-01mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2-5/+10
2010-09-02mesa/st: remove check for buffer/elements = 0Dave Airlie1-3/+0
shown by the glsl-vs-point-size failing on r600g. the test passes on softpipe and I get a full piglit test run completing on r600g.
2010-09-01r600g: silence compiler warningJerome Glisse1-1/+1
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01r600g: refix db/cb stateJerome Glisse6-32/+119
Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01mesa: fix out of bounds memory read in mipmap gen codeBrian Paul1-5/+12
Out of bounds reads could happen for reducing WxH to WxH/2 or WxH to W/2xH. Fixes fd.o bug 29918.
2010-09-01mesa: more prog_execute.c debug codeBrian Paul1-0/+7
2010-09-01glsl: Add forgotten implementations of equal/notEqual on bvecs.Kenneth Graunke3-0/+120
2010-09-01r600g: fix up default state differences between r6xx and r7xxAlex Deucher1-6/+16
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-09-01st/glx: re-order destruction of buffers, visualsBrian Paul1-1/+1
Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919.
2010-09-01i965: DP2 produces a scalar result like DP3, DP4, etc.Eric Anholt1-0/+1
Fixes glsl-fs-dot-vec2-2.
2010-09-01glsl2: Perform algebraic simplifications on logical binary operatorsIan Romanick1-0/+52
Reduces glsl-vs-all-01 from 42 Mesa IR instructions (including the END) to 17.
2010-09-01glsl2: Allow ir_constant::zero to create boolean constantsIan Romanick1-1/+1
2010-09-01r600g: avoid dynamic allocation of statesJerome Glisse17-1237/+523
Make state statically allocated, this kills a bunch of code and avoid intensive use of malloc/free. There is still a lot of useless duplicate function wrapping that can be kill. This doesn't improve yet performance, needs to avoid memcpy states in radeon_ctx_set_draw and to avoid rebuilding vs_resources, dsa, scissor, cb_cntl, ... states at each draw command. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-01Revert "Revert "r600g: precompute some of the hw state""Jerome Glisse11-120/+229
This reverts commit 1fa7245c348cb7aced81f1672140f64cb6450e2f. Conflicts: src/gallium/drivers/r600/r600_state.c
2010-09-01nouveau/nvfx: Remove enforcement of bit depth being same as front bufferPatrice Mandin1-17/+0
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-09-01mesa: initialize dummy framebuffer and renderbuffer mutexesVladimir Vukicevic1-0/+2
See fd.o bug 29909. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01Cygwin: Adjust mklib so -linker and -cplusplus options are processed more ↵Jon TURNEY1-6/+10
like they are for linux It looks like we were ignoring -linker when -noprefix wasn't present, and when -noprefix was present, -linker was mandatory and -cplusplus ignored. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01Cygwin: Teach mklib/minstall to properly install libraries on cygwinJon TURNEY3-11/+41
Teach mklib/minstall more about cygwin so libraries are properly installed Have mklib install the .dll into the lib/ staging directory as well Have minstall install the .dll into PREFIX/bin at the same time as installing the .dll.a link library into PREFIX/lib mklib uses a '-' rather than a '.' as the separator before the version number in library names on cygwin. Change the install globs so they match library names like that. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01Cygwin: Change mklib not to report the full archname on cygwinJon TURNEY1-2/+2
Change mklib not to report the full archname when building a library for cygwin (which is something like 'CYGWIN_NT-5.1' or 'CYGWIN_NT-6.1-WOW64' and kind of confusing), but just 'CYGWIN'. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01Cygwin: Have mklib exit with error code if link failsJon TURNEY1-7/+2
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-01glsl2: Disallow function declarations within function definitions in GLSL 1.20Ian Romanick1-1/+36
The GLSL 1.20 spec specifically disallows this, but it was allowed in GLSL 1.10. Fixes piglit test cases local-function-0[13].frag and bugzilla #29921.
2010-09-01r600: cube mipmap levels are aligned to 8 faces only starting from r7xxAndre Maasikas1-3/+3