aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* g3dvl: Rework the decoder interface part 1/5Christian König2011-08-267-316/+404
| | | | | | | | | First of all get ride of the decode_buffer structure, while still giving the decoder the ability to organize it's buffers depending on the needs of the state tracker. Signed-off-by: Christian König <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* tgsi: update tgsi.rst for TXQDave Airlie2011-08-261-2/+14
| | | | | | add some info on the TXQ opcode. Signed-off-by: Dave Airlie <[email protected]>
* i915g: Fix off-by-one in scissors.David Reveman2011-08-251-2/+2
|
* i915g: Fix case where texcoords can overlap with fragpos/frontface.Stéphane Marchesin2011-08-251-3/+3
|
* i915g: Improve the flush heuristic by using the previous frame's number of ↵Stéphane Marchesin2011-08-254-6/+18
| | | | vertices.
* r600g: fix replace_gpr_with_pv_psVadim Girlin2011-08-251-1/+1
| | | | | | | | | | Instructions with 3 source operands have no write mask, so we may replace their destinations with PV/PS in the next group even if their dst.write is 0. Note: This is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* r600g: fix check_and_set_bank_swizzleVadim Girlin2011-08-251-10/+20
| | | | | | | | | | Need to do full check when not all bank swizzles in the group are forced (e.g. when trying to merge interp_* group with the next instruction) Note: This is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* glcpp: Add GL_ARB_conservative_depth #define.Kenneth Graunke2011-08-251-1/+3
| | | | | | | Forgotten in the patch that enabled the extension. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* i965: Remove all bits of NRM3 and NRM4 codeIan Romanick2011-08-251-31/+0
| | | | | | | Nothing in Mesa generates these opcodes, and i965 hardware cannot support it natively. If support were ever added for this opcode in Mesa, there had better be a lowering pass for hardware that doesn't support it natively.
* glsl: fix crash when a const is passed to texelFetchOffsetDave Airlie2011-08-251-0/+1
| | | | | | | while debugging texelFetchOffset we kept hitting the assert. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* glsl: Bail after reporting an error for non-constant const_in parameters.Kenneth Graunke2011-08-251-0/+1
| | | | | | | | | | Otherwise we continue and hit the "Illegal formal parameter mode" assertion. Fixes negative compile test texelFetchOffset.frag in piglit. Signed-off-by: Kenneth Graunke <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* pp: add files to Makefile.sourcesBrian Paul2011-08-251-0/+6
|
* Merge branch 'kasanen-post-process-v2'Brian Paul2011-08-2522-4/+4844
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/Makefile src/gallium/auxiliary/SConscript
| * pp/main queue: Add the PP headersLauri Kasanen2011-08-193-0/+215
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp/main queue: Add pp_program.[ch]Lauri Kasanen2011-08-192-0/+201
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp/main queue: Add pp_init.cLauri Kasanen2011-08-191-0/+283
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp/main queue: Add pp_run.cLauri Kasanen2011-08-191-0/+188
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp: Add Jimenez' MLAALauri Kasanen2011-08-192-0/+646
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp: Add the MLAA areamapLauri Kasanen2011-08-191-0/+2821
| | | | | | | | | | | | | | | | The areamap contains precomputed data on different aliasing types. It is necessary for good performance. Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp: Cel-shade filterLauri Kasanen2011-08-192-0/+117
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp: Color filtersLauri Kasanen2011-08-192-0/+149
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * pp: DocsLauri Kasanen2011-08-191-0/+87
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * aux/Makefile,SConscript: Build PPLauri Kasanen2011-08-192-0/+12
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * st/dri: Bind the post-processing queue to driLauri Kasanen2011-08-195-4/+47
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * driconf: Add the PP descriptionsLauri Kasanen2011-08-192-0/+90
| | | | | | | | | | Signed-off-by: Lauri Kasanen <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* | softpipe: add const qualifier to silence warningsBrian Paul2011-08-251-1/+1
| |
* | glsl_to_tgsi: add TXF support. (v2)Dave Airlie2011-08-251-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | This adds texelFetch support to translate from GLSL to TGSI TXF opcode. I've tested this works with an r600g and softpipe backend. v2: drop comments, fix title, Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Bryan Cain <[email protected]>
* | softpipe: implement TXF support via get_texel callbackDave Airlie2011-08-251-0/+69
| | | | | | | | | | | | | | | | | | | | | | This just calls the texel fetch functions directly bypassing the sampling, notes: 1: loops inside switch should be more optimal. 2: borders can be sampled though only up to border depth, outside that its undefined. Signed-off-by: Dave Airlie <[email protected]>
* | tgsi: add TXF support.Dave Airlie2011-08-252-1/+59
| | | | | | | | | | | | | | | | | | | | | | This is a straight texel fetch with no filtering or clamping. It uses integers to specify the i/j/k (from EXT_gpu_shader4). To enable this I had to add another hook into the tgsi sampler so that we could easily bypass all the filtering sample does. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* | glsl_to_tgsi: implement TXS/TXQ. (v2)Dave Airlie2011-08-251-9/+18
| | | | | | | | | | | | | | | | | | GLSL uses TXS, call the gallium TXQ opcode. v2: fix indent from 4->3. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Bryan Cain <[email protected]>
* | softpipe: add get_dims callback for TXQ support. (v2)Dave Airlie2011-08-251-0/+40
| | | | | | | | | | | | | | | | | | | | | | This adds the get_dims callback that is called from the tgsi exec_txq. It returns values as per EXT_gpu_program4. v2: fix one indent + use a switch (slighty modified from Brian) Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* | tgsi: add TXQ support. (v2)Dave Airlie2011-08-252-1/+31
| | | | | | | | | | | | | | | | | | | | this adds another callback in the sampler struct containing get_dims entry point. This is used to query the driver for the texture resource dimensions for the resource bound to the current sampler. v2: remove unusued variable, fix indent Signed-off-by: Dave Airlie <[email protected]>
* | glsl: Implement the GL_ARB_conservative_depth extension.Kenneth Graunke2011-08-256-4/+8
| | | | | | | | | | | | | | It's the same as GL_AMD_conservative_depth. The specs have slight differences in wording, but don't differ in content or behavior. Signed-off-by: Kenneth Graunke <[email protected]>
* | Change return type of try_emit_* methods to bool.Kai Wasserbäch2011-08-252-9/+9
| | | | | | | | | | | | | | | | | | | | | | Ian Romanick explained (Message-Id: <[email protected]>), that the return type of non-API methods shouldn't use GLboolean but a standard C++ bool. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Bryan Cain <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Kai Wasserbäch <[email protected]>
* | d3d1x: save to correct slot in xs_set_constant_buffersChristoph Bumiller2011-08-251-2/+2
| |
* | d3d1x: fix xs_set_samplersChristoph Bumiller2011-08-251-1/+2
| |
* | android: add support for r600gChia-I Wu2011-08-255-0/+135
| | | | | | | | | | | | | | | | Tested with a Radeon HD 6250. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work but some don't (with serious rendering defects). Reviewed-by: Marek Olšák <[email protected]>
* | winsys/radeon: share the source listChia-I Wu2011-08-253-9/+7
| | | | | | | | | | | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <[email protected]>
* | winsys/r600: share the source listChia-I Wu2011-08-253-13/+10
| | | | | | | | | | | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <[email protected]>
* | r600g: share the source listChia-I Wu2011-08-253-31/+19
| | | | | | | | | | | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <[email protected]>
* | glsl: Make sure that Extensions.dummy_true is set to trueIan Romanick2011-08-241-0/+2
| | | | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
* | vbo: remove unused var, remove unneeded local varBrian Paul2011-08-241-4/+1
| |
* | llvmpipe: add more restrict keywordsBrian Paul2011-08-241-4/+4
| | | | | | | | | | | | | | | | Put restrict in the function definitions to silence MSVC warnings about incompatible assignments in "func = lp_tile_foobar;" when func was declared with restrict keywords but the rhs function wasn't. Reviewed-by: Jose Fonseca <[email protected]>
* | swrast: Remove swrast eject/validate texture image code.Brian Paul2011-08-241-79/+0
| | | | | | | | | | | | | | No driver used the eject function, or set the validate hook that made that function do anything. Reviewed-by: Ian Romanick <[email protected]>
* | radeon: Fix flushing before writing a teximage's BO when !t->bo.Eric Anholt2011-08-241-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Before, if we ended up here without a BO for our image, but did choose a miptree that had active rendering in the command buffer, our teximage data would jump ahead of the rendering using the old texture contents. This showed up as breakage in gen-teximage and friends in the following commit. Reviewed-by: Ian Romanick <[email protected]>
* | st/mesa: remove st_texture_image::face,level fieldsBrian Paul2011-08-244-23/+17
| | | | | | | | Reviewed-by: Ian Romanick <[email protected]>
* | intel: use new gl_texture_image:Face, Level fieldsBrian Paul2011-08-249-51/+34
| | | | | | | | Reviewed-by: Ian Romanick <[email protected]>
* | mesa: add gl_texture_image::Face, Level fieldsBrian Paul2011-08-242-0/+5
| | | | | | | | | | | | | | Several drivers have these fields in their subclasses of gl_texture_image. They'll be useful for core Mesa too... Reviewed-by: Ian Romanick <[email protected]>
* | x11: add missing comma to fix compilationBrian Paul2011-08-241-1/+1
| |
* | r600g: fill out missing entries in opcode tables.Dave Airlie2011-08-241-0/+36
| | | | | | | | | | | | this just adds the missing opcodes as unsupported. Signed-off-by: Dave Airlie <[email protected]>