summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-08-17i965: Throw a link error when we see a "return" in main().Eric Anholt
We'll need to use the HALT instruction to do this right, like returns from other functions.
2010-08-17ir_to_mesa: Fix implementation of ir_binop_equal, ir_binop_notequal.Eric Anholt
These binops are the vector-to-bool comparisons, not vec-to-bvec. We likely want both operations avilable as expression, since 915 and 965 FS naturally does the vector version, while 965 VS can also naturally do the scalar version. However, we can save that until later. Fixes: glsl-fs-vec4-operator-equal.shader_test glsl-fs-vec4-operator-notequal.shader_test glsl-vs-vec4-operator-equal.shader_test glsl-vs-vec4-operator-notequal.shader_test
2010-08-17i915: Add support for SSG opcode.Eric Anholt
Fixes glsl-fs-sign and many of the tests of trig builtins.
2010-08-17i915: Add support for reading output regs in the FS.Eric Anholt
Fixes glsl-unused-varying and many others, since we produce an output reg read any time gl_FragColor is written inside an if statement.
2010-08-17i915: Add support for OPCODE_DP2.Eric Anholt
Fixes glsl-fs-dot-vec2.
2010-08-17i915: Enable ARB_fragment_shader by default.Eric Anholt
Now that we have glsl2 with if flattening in place, most shaders will just work. Remaining failing shaders will mostly be due to loop unrolling (in progress), some possible if flattening failures in inlining functions (planning on fixing), and the register/instruction count limits. While the GLSL and GLSL-ES specs say that shaders shouldn't fail to compile/link due to register/instruction limits, in practice we're not the first vendor to expose GLSL on hardware with these limitations. The benefit to application developers of providing a better language for GPU programming is greater than the pain of having to handle instruction limits (which they had to for ARB_fp on this hardware anyway)
2010-08-17r600c: Handle reads from PROGRAM_OUTPUTHenri Verbeet
with glsl2, reads from outputs are legal
2010-08-17prog_optimize: Only merge writes to temporary registersBenjamin Segovia
In one optimization pass, register files may have been messed therefore merging instructions which use the same index in two different register files.
2010-08-17i965: Add support for DP2 in the VS.Eric Anholt
Fixes glsl-vs-dot-vec2.
2010-08-17mesa: Dump shader source before validating the shader.Eric Anholt
This will make extracting source to produce minimal testcases for shader compile issues easier.
2010-08-17r600c: fix dword miscount in blit emit codeAlex Deucher
2010-08-17mesa: fix es1/2 build hopefullyDave Airlie
needed to add cpp rules and includes properly for es1/es2
2010-08-16i965: Use the implied move available in most brw_wm_emit brw_math() calls.Eric Anholt
This saves an extra message reg move in the program, though I'm not clear on whether it will have any performance impact other than cache footprint. It will also fix those math calls on Sandybridge, where the brw_eu_emit.c brw_math() support relies on the implied move being used.
2010-08-16i965: Add disasm for Compr4 instruction compression.Eric Anholt
2010-08-16Merge branch 'glsl2'Ian Romanick
Conflicts: src/mesa/program/prog_optimize.c
2010-08-16ir_to_mesa: Silence unused variable warningsIan Romanick
2010-08-16ir_to_mesa: Clean up assertions in ir_to_mesa_visitor::visit(ir_texture *)Ian Romanick
2010-08-16ir_to_mesa: Support texture rectangle targetsIan Romanick
2010-08-16r600c: blit emit updatesAlex Deucher
- set VGT_MAX_VTX_INDX to a larger value - emit PA_SC_AA_CONFIG. The command checker in 2.6.36+ requires this reg.
2010-08-16st/mesa: test for FEATURE definesnobled
'struct dd_function_table' only conditionally contains the function pointer NewFramebuffer and friends based on FEATURE_EXT_framebuffer_* defines. (See src/mesa/main/dd.h) Fixes the build when the features are disabled and the vfuncs don't exist.
2010-08-16dri/nouveau: test for FEATURE definesnobled
'struct dd_function_table' only conditionally contains the function pointer NewFramebuffer and friends based on FEATURE_EXT_framebuffer_* defines. (See src/mesa/main/dd.h) Fixes the build when the features are disabled and the vfuncs don't exist.
2010-08-16dri/radeon: test for FEATURE definesnobled
'struct dd_function_table' only conditionally contains the function pointer NewFramebuffer and friends based on FEATURE_EXT_framebuffer_* defines. (See src/mesa/main/dd.h) Fixes the build when the features are disabled and the vfuncs don't exist.
2010-08-16x86: Remove unnecessary header from sse.h.Vinson Lee
2010-08-15x86: Include missing headers in mmx.h.Vinson Lee
Include compiler.h for _ASMAPI symbol. Include mtypes.h for GLcontext symbol.
2010-08-15x86: Remove unnecessary header from 3dnow.h.Vinson Lee
2010-08-15glsl: Clean up header file inclusion in slang_typeinfo.h.Vinson Lee
Remove imports.h, mtypes.h, and slang_vartable.h. Include glheader.h for GL symbols.
2010-08-15glsl: Include missing header in slang_codegen.h.Vinson Lee
Include slang_vartable.h for slang_var_table symbol.
2010-08-15glsl: Include missing header in slang_compile_operation.h.Vinson Lee
Include compiler.h for INLINE symbol.
2010-08-15glsl: Clean up header file inclusion in slang_storage.h.Vinson Lee
Remove slang_compile.h. Include glheader.h for GL symbols. Include slang_compile_function.h for slang_function_scope symbol. Include slang_compile_struct.h for slang_struct_scope symbol. Include slang_compile_variable.h for slang_variable_scope symbol. Include slang_typeinfo.h for slang_type_specifier symbol. Include slang_utility.h for slang_atom_pool symbol.
2010-08-15glsl: Clean up header file inclusion in slang_mem.h.Vinson Lee
slang_mem.h Remove imports.h. Include glheader.h for GL symbols. slang_label.c Include imports.h now that slang_mem.c does not include it.
2010-08-15glsl: Clean up header file inclusion in slang_ir.h.Vinson Lee
Remove imports.h and slang_compile.h. Include glheader.h for GL symbols. Include slang_compile_variable.h for slang_variable symbol.
2010-08-15glsl: Include missing header in slang_link.c.Vinson Lee
Include slang_compile.h for _slang_compile function.
2010-08-15glsl: Include missing headers in slang_builtin.c.Vinson Lee
Include slang_typeinfo.h for slang_type_specifier symbol. Include slang_compiler_struct.h for slang_struct_ symbol.
2010-08-16st/mesa: remove output register reads inside shadersMarek Olšák
This is a GLSL2 regression fix.
2010-08-16r300/compiler: implement DP2 opcodeMarek Olšák
2010-08-16r300/compiler: implement SSG opcodeMarek Olšák
2010-08-16r300/compiler: fix allocation of temporaries in radeonTransformTEXMarek Olšák
2010-08-15mesa: Check that _XOPEN_SOURCE is defined before using it.Vinson Lee
2010-08-15glsl: Fix self inclusion in slang_compile_function.h.Vinson Lee
Fix self inclusion introduced by commit 4fef77c7c5455b983daa93cacf90d2b3baa3967e.
2010-08-15glsl: Include missing header in slang_ir.h.Vinson Lee
Include prog_instruction.h for gl_inst_opcode symbol.
2010-08-15glsl: Clean up header file inclusion in slang_link.h.Vinson Lee
Remove slang_compile.h. Include mtypes.h for GLcontext symbol.
2010-08-15glsl: Clean up header file inclusion in slang_label.h.Vinson Lee
Move mtypes.h and prog_instruction.h to slang_label.c. Remove imports.h. Include glheader.h from GL symbols.
2010-08-14glsl: Clean up header file inclusion in slang_emit.h.Vinson Lee
Remove imports.h. Remove mtypes.h. Remove slang_compile.h. Include glheader.h for GL symbols. Include slang_vartable.h for slang_var_table symbol.
2010-08-14glsl: Clean up header file inclusion in slang_compile.h.Vinson Lee
Remove imports.h. Remove slang_typeinfo.h. Remove slang_compile_operation.h. Include glheader.h for GL symbols. Include slang_utility.h for slang_atom_pool symbol.
2010-08-14glsl: Include missing headers in slang_compile_struct.h.Vinson Lee
Include glheader.h for GL symbols. Include slang_utility.h for slang_atom symbol.
2010-08-14glsl: Include missing headers in slang_print.h.Vinson Lee
Include glheader.h for GL symbols. Include slang_compile_function.h for slang_function symbol. Include slang_compile_operation.h for slang_operation symbol. Include slang_compile_variable.h for slang_variable and slang_variable_scope symbols. Include slang_typeinfo.h for slang_type_qualifer and slang_fully_specified_type symbols.
2010-08-14glsl: Include missing headers in slang_compile_function.hVinson Lee
Include glheader.h for GL symbols. Include slang_compile_function.h for slang_function symbol. Include slang_compile_operation.h for slang_operation symbol. Include slang_compile_variable.h for slang_variable and slang_variable_scope symbols. Include slang_log.h for slang_info_log symbols. Include slang_utility.h for slang_atom and slang_atom_pool symbols.
2010-08-14glsl: Include missing headers in slang_compiler_operation.h.Vinson Lee
Include glheader.h for GL symbols. Include slang_compile_variable.h for slang_variable_scope symbol. Include slang_utility.h for slang_atom symbol.
2010-08-14glsl: Include missing headers in slang_simplify.h.Vinson Lee
Include glheader.h for GL symbols. Include slang_compile.h for slang_name_space symbol. Include slang_compile_function.h for slang_function symbol. Include slang_compile_operation.h for slang_operation symbol. Include slang_log.h for slang_info_log symbol. Include slang_utility.h for slang_atom_pool symbol.
2010-08-14glsl: Include missing header in slang_utility.h.Vinson Lee
Include glheader.h for GL symbols.