summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nv50: minor compiler fixes and cleanupsChristoph Bumiller2010-09-124-8/+19
|
* nv50: reduce bb_reachable_by runtime from pot to linearChristoph Bumiller2010-09-123-21/+104
| | | | As a by-product, remove the memory leak of nv_basic_blocks.
* nv50: fix can_load check for 3rd sourceChristoph Bumiller2010-09-091-7/+5
|
* nv50: address regs are 16 bitChristoph Bumiller2010-09-092-1/+5
|
* nv50: duplicate interps in load_proj_tex_coordsChristoph Bumiller2010-09-091-4/+35
| | | | | Otherwise we might clobber the origin interpolation result or use the result of the RCP before its definition.
* nv50: create value references with the right typeChristoph Bumiller2010-09-092-26/+29
| | | | | | | | | Since atm our OPs aren't typed but instead values are, we need to take care if they're used as different types (e.g. a load makes a value u32 by default). Maybe this should be changed (also to match TGSI), but it should work as well if done properly.
* nv50: use actual loads/stores if TEMPs are accessed indirectlyChristoph Bumiller2010-09-0910-23/+122
|
* nv50: don't parse again in tgsi_2_ncChristoph Bumiller2010-09-091-15/+3
|
* nv50: prepare for having multiple functionsChristoph Bumiller2010-09-098-52/+171
| | | | | | | | | At some point we'll want to support real subroutines instead of just inlining them into the main shader. Since recursive calls are forbidden, we can just save all used registers to a fixed local memory region and restore them on a return, no need for a stack pointer.
* nv50: save tgsi instructionsChristoph Bumiller2010-09-092-0/+6
|
* nv50: load address register before using it, not afterChristoph Bumiller2010-09-031-5/+7
|
* Merge remote branch 'origin/master' into nv50-compilerChristoph Bumiller2010-09-021069-48298/+116779
|\ | | | | | | | | Conflicts: src/gallium/drivers/nv50/nv50_program.c
| * r600g: fix memory/bo leakJerome Glisse2010-09-024-2/+21
| | | | | | | | Signed-off-by: Jerome Glisse <[email protected]>
| * mesa: fix code generation for ir_unop_sqrtBrian Paul2010-09-021-2/+3
| | | | | | | | | | | | | | The CMP instruction needed to be flipped to properly handle operand==0. Fixes fd.o bug 29923.
| * mesa: fix some printf warnings with castsBrian Paul2010-09-024-10/+10
| |
| * r600g: fix thinko in shadow code.Dave Airlie2010-09-021-1/+1
| | | | | | | | spotted by taiu on irc
| * r600g: fix logicop, the 3d ROP is the 2D rop shifted twice.Dave Airlie2010-09-021-1/+1
| |
| * r600g: fix depth texture testsDave Airlie2010-09-021-2/+2
| |
| * glsl: Apply implicit conversions to structure constructor parameters.Kenneth Graunke2010-09-012-3/+10
| | | | | | | | | | | | | | The code for handling implicit conversions should probably get refactored, but for now, this is easy. Fixes piglit test constructor-26.vert.
| * glsl: Convert constant record constructor parameters to ir_constants.Kenneth Graunke2010-09-011-1/+3
| | | | | | | | I'm not sure if this is strictly necessary, but it seems wise.
| * glsl: Reject structure constructors that have too many arguments.Kenneth Graunke2010-09-011-0/+6
| | | | | | | | Fixes piglit test constructor-27.vert.
| * glsl2: Remove unnecessary glsl_symbol_table::get_function parameter ↵Ian Romanick2010-09-013-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.
| * glsl2: Remove unused method glsl_type::generate_constructorIan Romanick2010-09-012-59/+0
| |
| * glsl2: Remove unused 'constructor' parameter from glsl_symbol_table::add_typeIan Romanick2010-09-012-6/+4
| |
| * glsl2: Don't generate constructor functions for structuresIan Romanick2010-09-012-3/+2
| |
| * glsl2: Emit structure constructors inlineIan Romanick2010-09-011-37/+70
| | | | | | | | Fixes piglit test cases glsl-[fv]s-all-0[12].
| * r600g: add missing vertex fetch formats to the translation table.Dave Airlie2010-09-022-0/+3
| | | | | | | | fixes at least 2 more piglits.
| * r600g: fix binding of same texture to several target slotJerome Glisse2010-09-012-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 <[email protected]>
| * glsl: Fix write mask in matrix-from-matrix constructors.Kenneth Graunke2010-09-011-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.
| * glsl: Add proper handling for constant matrix-from-matrix constructors.Kenneth Graunke2010-09-011-0/+25
| | | | | | | | | | Fixes piglit test case constructor-21.vert and changes constructor-22.vert to give the correct output.
| * glsl: Move generate_constructor_(matrix|vector) to ir_constant ctor.Kenneth Graunke2010-09-012-99/+36
| |
| * ast_function: Fix check for "too few components".Kenneth Graunke2010-09-011-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.
| * ast_function: Remove bogus cases from generate_constructor_matrix.Kenneth Graunke2010-09-011-29/+8
| | | | | | | | There are no integer matrix types, so switching on them is silly.
| * r600g: fix incorrect state naming in pipe_sampler vs pipe_sampler_viewDave Airlie2010-09-021-1/+1
| | | | | | | | fixes problems in valgrind with uninitialised values.
| * ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to a temp.Eric Anholt2010-09-011-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.
| * ir_to_mesa: Add a little helper for emitting link failure messages.Eric Anholt2010-09-011-24/+22
| |
| * mesa: Fix many printf-like warnings.Eric Anholt2010-09-014-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.
| * mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2010-09-012-5/+10
| |
| * mesa/st: remove check for buffer/elements = 0Dave Airlie2010-09-021-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.
| * r600g: silence compiler warningJerome Glisse2010-09-011-1/+1
| | | | | | | | Signed-off-by: Jerome Glisse <[email protected]>
| * r600g: refix db/cb stateJerome Glisse2010-09-016-32/+119
| | | | | | | | | | Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Jerome Glisse <[email protected]>
| * mesa: fix out of bounds memory read in mipmap gen codeBrian Paul2010-09-011-5/+12
| | | | | | | | | | | | | | Out of bounds reads could happen for reducing WxH to WxH/2 or WxH to W/2xH. Fixes fd.o bug 29918.
| * mesa: more prog_execute.c debug codeBrian Paul2010-09-011-0/+7
| |
| * glsl: Add forgotten implementations of equal/notEqual on bvecs.Kenneth Graunke2010-09-013-0/+120
| |
| * r600g: fix up default state differences between r6xx and r7xxAlex Deucher2010-09-011-6/+16
| | | | | | | | Signed-off-by: Alex Deucher <[email protected]>
| * st/glx: re-order destruction of buffers, visualsBrian Paul2010-09-011-1/+1
| | | | | | | | | | Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919.
| * i965: DP2 produces a scalar result like DP3, DP4, etc.Eric Anholt2010-09-011-0/+1
| | | | | | | | Fixes glsl-fs-dot-vec2-2.
| * glsl2: Perform algebraic simplifications on logical binary operatorsIan Romanick2010-09-011-0/+52
| | | | | | | | | | Reduces glsl-vs-all-01 from 42 Mesa IR instructions (including the END) to 17.
| * glsl2: Allow ir_constant::zero to create boolean constantsIan Romanick2010-09-011-1/+1
| |
| * r600g: avoid dynamic allocation of statesJerome Glisse2010-09-0117-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 <[email protected]>