summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nvfx: support indirect addressing in vpsLuca Barbieri2010-09-034-27/+96
| | | | Negative or huge offsets not yet supported.
* r600c: add proper returns for some evergreen functionsAlex Deucher2010-09-032-2/+8
| | | | | | | these weren't checked anyway. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=29999
* nvfx: fix support for more than 8 texture units (fixes etqw crash)Luca Barbieri2010-09-032-4/+3
|
* r600g: fix segfault in state after reworkDave Airlie2010-09-031-2/+2
| | | | probably can improve this a bit.
* r600c: emit DB_HTILE_DATA_BASE on evergreenAlex Deucher2010-09-031-4/+11
| | | | Make the hw happy.
* r600g: refactor sample states into a reusable struct.Dave Airlie2010-09-032-97/+78
| | | | | | I will not cut-n-paste. I will not cut-n-paste. I will not cut-n-paste.
* r600g: reduce size of r600 context structure to !insaneDave Airlie2010-09-032-3/+29
| | | | Its now about 7.8k, and might actually fit in a cache.
* r600g: add texture border state.Dave Airlie2010-09-032-2/+42
| | | | | | | Okay I finally wrapped my head around what r600_context_state is meant to be, maybe I should just rename all the structs so that have distinct names. I've no idea however why 16 is a good magic number for R600_MAX_RSTATE.
* r600g: deref old driver states for set entry points.Dave Airlie2010-09-031-0/+10
|
* r600g: drop r600_bind_state.Dave Airlie2010-09-031-75/+34
| | | | | | | This was another ugly function that really wasn't needed. The 3 calls to it from the gallium api were shorter than it, and all the calls from the set_ functions were pointless.
* r600g: kill r600_context_state functionDave Airlie2010-09-032-96/+63
| | | | | | having some sort of locality of code really matters, just create and setup state at time. Not sure if this is just further polishing of a bad thing, but at least it makes it more readable.
* r600g: move lots of state inline helpers to separate header.Dave Airlie2010-09-032-117/+120
| | | | this gets them out of sight of the main codeflow.
* draw: Include missing headers in draw_vs_aos.h.Vinson Lee2010-09-021-0/+2
| | | | | Include tgsi_exec.h for TGSI_EXEC_NUM_TEMPS. Include draw_vs.h for draw_vs_varient.
* r600g: drop magic numbers in depth state.Dave Airlie2010-09-032-3/+33
| | | | this also fixes occulsion queries.
* util: Include missing header in u_linear.h.Vinson Lee2010-09-021-0/+1
| | | | Include p_compiler.h for size_t and boolean symbols.
* mesa: Fix printf-like warning.Vinson Lee2010-09-022-2/+2
|
* mesa: Fix printf-like warnings.Vinson Lee2010-09-026-16/+16
|
* r600g: force unbind of previously bind sampler/sampler_viewJerome Glisse2010-09-022-86/+95
| | | | | | | | | | | | | | | | Previously bind sampler/sampler_view can be converted and endup overwritting the current state we want to schedule. Example : bind texA texB to sampler_view[0] & sampler_view[1], render, bind texB to sampler_view[0] render. Now state associated to texB are set to configure sampler_view slot 0, but as we don't unbind sampler_view[1] still point to texB state so we end up with sampler_view[1] overwritting sampler_view[0], which gives wrong rendering if next rendering bind texA to sampler_view[0], it will endup as texB is bound to sampler_view[0]. If you are not confuse at that point give me a call i will be buying you beer. Signed-off-by: Jerome Glisse <[email protected]>
* st/mesa: clamp gl_constants::MaxVarying against MAX_VARYINGBrian Paul2010-09-021-0/+1
| | | | | Don't try to use more generic varying vars than core Mesa supports. Fixes fd.o bug 29959.
* glsl2: Update TODO fileIan Romanick2010-09-021-19/+7
|
* 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.