aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning on linux-x86 build. r3xx_vertprog.c: In function ‘ei_if’: r3xx_vertprog.c:396: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-4/+10
| | | | | | | | | | | | Fixes these GCC warnings on linux-x86 build. r500_fragprog_emit.c: In function ‘emit_paired’: r500_fragprog_emit.c:237: warning: ISO C90 forbids mixed declarations and code r500_fragprog_emit.c: In function ‘emit_tex’: r500_fragprog_emit.c:367: warning: ISO C90 forbids mixed declarations and code r500_fragprog_emit.c: In function ‘emit_flowcontrol’: r500_fragprog_emit.c:415: warning: ISO C90 forbids mixed declarations and code r500_fragprog_emit.c: In function ‘r500BuildFragmentProgramHwCode’: r500_fragprog_emit.c:633: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-3/+4
| | | | | | | | Fixes these GCC warnings on linux-x86 build. r500_fragprog.c: In function ‘r500_transform_IF’: r500_fragprog.c:45: warning: ISO C90 forbids mixed declarations and code r500_fragprog.c: In function ‘r500FragmentProgramDump’: r500_fragprog.c:256: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-10/+18
| | | | | | | | | | | Fixes these GCC warnings on linux-x86 build. r300_fragprog_emit.c: In function ‘emit_alu’: r300_fragprog_emit.c:143: warning: ISO C90 forbids mixed declarations and code r300_fragprog_emit.c:156: warning: ISO C90 forbids mixed declarations and code r300_fragprog_emit.c: In function ‘finish_node’: r300_fragprog_emit.c:271: warning: ISO C90 forbids mixed declarations and code r300_fragprog_emit.c: In function ‘emit_tex’: r300_fragprog_emit.c:344: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Remove declaration before code.Vinson Lee2010-09-291-5/+6
| | | | | | | | Fixes these GCC warnings on linux-x86 build. r300_fragprog_swizzle.c: In function ‘r300_swizzle_is_native’: r300_fragprog_swizzle.c:120: warning: ISO C90 forbids mixed declarations and code r300_fragprog_swizzle.c: In function ‘r300_swizzle_split’: r300_fragprog_swizzle.c:159: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-2/+3
| | | | | | Fixes this GCC warning on linux-x86 build. radeon_rename_regs.c: In function ‘rc_rename_regs’: radeon_rename_regs.c:112: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-1/+2
| | | | | | Fixes this GCC warning on linux-x86 build. radeon_remove_constants.c: In function ‘rc_remove_unused_constants’: radeon_remove_constants.c:100: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-6/+13
| | | | | | | | Fixes these GCC warning on linux-x86 build. radeon_optimize.c: In function ‘constant_folding’: radeon_optimize.c:419: warning: ISO C90 forbids mixed declarations and code radeon_optimize.c:425: warning: ISO C90 forbids mixed declarations and code radeon_optimize.c:432: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-5/+9
| | | | | | | | | | | Fixes these GCC warnings on linux-x86 build. radeon_dataflow_deadcode.c: In function ‘push_branch’: radeon_dataflow_deadcode.c:112: warning: ISO C90 forbids mixed declarations and code radeon_dataflow_deadcode.c: In function ‘update_instruction’: radeon_dataflow_deadcode.c:183: warning: ISO C90 forbids mixed declarations and code radeon_dataflow_deadcode.c: In function ‘rc_dataflow_deadcode’: radeon_dataflow_deadcode.c:352: warning: ISO C90 forbids mixed declarations and code radeon_dataflow_deadcode.c:379: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-1/+2
| | | | | | Fixes this GCC warning on linux-x86 build. radeon_pair_regalloc.c: In function ‘rc_pair_regalloc_inputs_only’: radeon_pair_regalloc.c:330: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-8/+16
| | | | | | | | | | | | | | | | | Fixes these GCC warnings on linux-x86 build. radeon_pair_schedule.c: In function ‘emit_all_tex’: radeon_pair_schedule.c:244: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c: In function ‘destructive_merge_instructions’: radeon_pair_schedule.c:291: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c:438: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c: In function ‘scan_read’: radeon_pair_schedule.c:619: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c: In function ‘scan_write’: radeon_pair_schedule.c:645: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c: In function ‘schedule_block’: radeon_pair_schedule.c:673: warning: ISO C90 forbids mixed declarations and code radeon_pair_schedule.c: In function ‘rc_pair_schedule’: radeon_pair_schedule.c:730: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-5/+10
| | | | | | | | | | Fixes these GCC warnings on linux-x86 build. radeon_pair_translate.c: In function ‘set_pair_instruction’: radeon_pair_translate.c:153: warning: ISO C90 forbids mixed declarations and code radeon_pair_translate.c:170: warning: ISO C90 forbids mixed declarations and code radeon_pair_translate.c: In function ‘rc_pair_translate’: radeon_pair_translate.c:336: warning: ISO C90 forbids mixed declarations and code radeon_pair_translate.c:341: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-12/+16
| | | | | | | | | | | Fixes these GCC warnings on linux-x86 build. radeon_program_alu.c: In function ‘r300_transform_trig_simple’: radeon_program_alu.c:882: warning: ISO C90 forbids mixed declarations and code radeon_program_alu.c:932: warning: ISO C90 forbids mixed declarations and code radeon_program_alu.c: In function ‘radeonTransformTrigScale’: radeon_program_alu.c:996: warning: ISO C90 forbids mixed declarations and code radeon_program_alu.c: In function ‘r300_transform_trig_scale_vertex’: radeon_program_alu.c:1033: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-2/+3
| | | | | | Fixes this GCC warning on linux-x86 build. radeon_emulate_loops.c: In function ‘rc_emulate_loops’: radeon_emulate_loops.c:517: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-09-291-9/+20
| | | | | | | | | | | | | | | | Fixes these GCC warnings with linux-x86 build. radeon_emulate_branches.c: In function ‘handle_if’: radeon_emulate_branches.c:65: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c:71: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c: In function ‘handle_else’: radeon_emulate_branches.c:94: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c: In function ‘handle_endif’: radeon_emulate_branches.c:201: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c: In function ‘fix_output_writes’: radeon_emulate_branches.c:267: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c:284: warning: ISO C90 forbids mixed declarations and code radeon_emulate_branches.c: In function ‘rc_emulate_branches’: radeon_emulate_branches.c:307: warning: ISO C90 forbids mixed declarations and code
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_xform.c: In function '_math_test_all_transform_functions': math/m_debug_xform.c:320: warning: format not a string literal and no format arguments
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_norm.c: In function '_math_test_all_normal_transform_functions': math/m_debug_norm.c:365: warning: format not a string literal and no format arguments
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_clip.c: In function '_math_test_all_cliptest_functions': math/m_debug_clip.c:363: warning: format not a string literal and no format arguments
* Revert "i965: Always set tiling for depth buffer on sandybridge"Zhenyu Wang2010-09-291-1/+1
| | | | | | This reverts commit 0a1910c26760762eb8d67f68dfd87494ab479e38. oops, shouldn't apply tiling depth buffer for other chips as well.
* r300/compiler: Don't merge instructions that write output regs and ALU resultTom Stellard2010-09-281-0/+6
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=30415 NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Don't use rc_error() unless the error is unrecoverableTom Stellard2010-09-281-3/+3
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=30416 NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Fix segfault in error pathTom Stellard2010-09-281-1/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=30415 NOTE: This is a candidate for the 7.9 branch.
* i965: fallback lineloop on sandybridge for nowZhenyu Wang2010-09-291-0/+7
| | | | Until we fixed GS hang issue.
* i965: Always set tiling for depth buffer on sandybridgeZhenyu Wang2010-09-291-1/+1
| | | | | | Sandybridge only support tiling depth buffer, always set tiling bit. Fix 'fbo_firecube' demo.
* i965: Add support for builtin uniforms to the new FS backend.Eric Anholt2010-09-281-1/+70
| | | | Fixes 8 piglit tests.
* mesa: Move the list of builtin uniform info from ir_to_mesa to shared code.Eric Anholt2010-09-283-243/+251
| | | | | | I'm still not pleased with how builtin uniforms are handled, but as long as we're relying on the prog_statevar stuff this seems about as good as it'll get.
* i965: Clean up obsolete FINISHME comment.Eric Anholt2010-09-281-1/+0
|
* i965: Fix array indexing of arrays of matrices.Eric Anholt2010-09-281-7/+3
| | | | | The deleted code was meant to be handling indexing of a matrix, which would have been a noop if it had been correct.
* i965: Don't try to emit interpolation for unused varying slots.Eric Anholt2010-09-281-0/+9
| | | | | | | | Fixes: glsl-fs-varying-array glsl-texcoord-array glsl-texcoord-array-2 glsl-vs-varying-array
* i965: Do interpolation for varying matrices and arrays in the FS backend.Eric Anholt2010-09-281-59/+57
| | | | | | | | | | Fixes: glsl-array-varying-01 glsl-vs-mat-add-1 glsl-vs-mat-div-1 glsl-vs-mat-div-2 glsl-vs-mat-mul-2 glsl-vs-mat-mul-3
* i965: Add support for ARB_fragment_coord_conventions to the new FS backend.Eric Anholt2010-09-281-15/+55
| | | | | | Fixes: glsl-arb-frag-coord-conventions glsl-fs-fragcoord
* i965: Add support for ir_loop counters to the new FS backend.Eric Anholt2010-09-281-5/+59
| | | | | | | Fixes: glsl1-discard statement in for loop glsl-fs-loop-two-counter-02 glsl-fs-loop-two-counter-04
* i965: Add support for MRT to the new FS backend.Eric Anholt2010-09-281-27/+48
| | | | | | | Fixes these tests using gl_FragData or just gl_FragDepth: glsl1-Preprocessor test (extension test 1) glsl1-Preprocessor test (extension test 2) glsl-bug-22603
* i965: Add support for non-color render target write data to new FS backend.Eric Anholt2010-09-281-4/+39
| | | | | | | This is the first time these payload bits have made sense to me, outside of brw_wm_pass* structure. Fixes: glsl1-gl_FragDepth writing
* scons: Add program/sampler.cpp to SCons build.Vinson Lee2010-09-281-0/+1
| | | | | | This is a follow-up to commit a32893221ce253da7bb465e0ec9d0df5f7208d8f. Fixes MinGW SCons build.
* i965: Set up sampler numbers in the FS backend.Eric Anholt2010-09-281-2/+10
| | | | +10 piglits
* mesa: Pull ir_to_mesa's sampler number fetcher out to shared code.Eric Anholt2010-09-284-87/+175
|
* i965: Subtract instead of adding when computing y delta in new FS backend.Eric Anholt2010-09-281-1/+1
| | | | Fixes 7 piglit cases.
* i965: Add support for gl_FrontFacing to the new FS backend.Eric Anholt2010-09-281-3/+15
| | | | | | Fixes: glsl1-gl_FrontFacing var (1) glsl1-gl_FrontFacing var (2)
* i965: Fix up part of my Sandybridge attributes support patch.Eric Anholt2010-09-281-2/+4
| | | | | I confused the array sizing for number of files for the number of regs in a file.
* i965: Fix all non-snb regression in the snb attribute interpolation commit.Eric Anholt2010-09-281-1/+1
| | | | | This apparently had never been tested elsewhere before being merged to master.
* i965: Add support for struct, array, and matrix uniforms to FS backend.Eric Anholt2010-09-281-15/+60
| | | | Fixes 16 piglit cases.
* i965: Add support for dereferencing structs to the new FS backend.Eric Anholt2010-09-281-35/+32
| | | | Fixes: glsl1-struct(2)
* i965: Set the variable type when dereferencing an array.Eric Anholt2010-09-281-0/+15
| | | | | | | | | | We don't set the type on the array virtual reg as a whole, so here's the right place. Fixes: glsl1-GLSL 1.20 arrays glsl1-temp array with constant indexing, fragment shader glsl1-temp array with swizzled variable indexing
* i965: Fix up the FS backend for the variable array indexing pass.Eric Anholt2010-09-281-4/+12
| | | | | | We need to re-run channel expressions afterwards as it generates new vector expressions, and we need to successfully support conditional assignment (brw_CMP takes 2 operands, not 1).
* i965: Fix valgrind complaint about base_ir for new FS debugging.Eric Anholt2010-09-281-0/+1
|
* i965: Apply the same set of lowering passes to new FS as to Mesa IR.Eric Anholt2010-09-281-0/+15
| | | | | | | | While much of this we will want to support natively, this should make the task of reaching the Mesa IR backend's quality easier. Fixes: glsl-fs-main-return.
* i965: Actually track the "if" depth in loop in the new FS backend.Eric Anholt2010-09-281-0/+2
| | | | | Fixes: glsl-fs-if-nested-loop.
* i965: Fix negation in the new FS backend.Eric Anholt2010-09-281-1/+1
| | | | | | Fixes: glsl1-Negation glsl1-Negation2
* i965: fallback bitmap operation on sandybridgeZhenyu Wang2010-09-281-0/+6
| | | | | Need to bring back correct fb write with header to set pixel write mask. Fallback for now.