summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-17mesa: upgrade to glext.h version 66Brian Paul11-43/+56
The type of the num/count parameter to glProgramParameters4[df]vNV() changed so some API dispatch code needed updates too.
2010-11-17r600g: fix buffer alignmentAlex Deucher2-10/+41
This should fix the remaining buffer alignment issues in r600g.
2010-11-18i965: Fail on loops on gen6 for now until we write the EU emit code for it.Eric Anholt1-0/+4
2010-11-18i965: Add dumping of the sampler default color.Eric Anholt1-0/+11
2010-11-18i965: Add state dumping for sampler state.Eric Anholt1-2/+39
2010-11-18mesa: Don't spam the console in a debug build unless some spam is requested.Eric Anholt1-2/+4
It's annoying to use test suites under a Mesa debug build because pretty output is cluttered with stderr's continuous reports that you're still using the debug driver.
2010-11-18i965: Shut up spurious gcc warning about GLSL_TYPE enums.Eric Anholt1-0/+4
2010-11-17gallium: Remove redundant sw and debug target helpersJakob Bornecrantz9-272/+1
2010-11-17graw: Use inline debug helper instead of non-inline versionJakob Bornecrantz4-5/+10
2010-11-17libgl-xlib: Use inline debug helper instead of non-inline versionJakob Bornecrantz3-21/+8
2010-11-17glsl: Improve usage message for glsl_compilerChad Versace1-9/+19
The new usage message lists possible command line options. (Newcomers to Mesa currently have to trawl through the source to find the command line options, and we should save them from that trouble.) Example Output -------------- usage: ./glsl_compiler [options] <file.vert | file.geom | file.frag> Possible options are: --glsl-es --dump-ast --dump-hir --dump-lir --link
2010-11-17glsl: Refactor get_num_operands.Kenneth Graunke2-71/+21
This adds sentinel values to the ir_expression_operation enum type: ir_last_unop, ir_last_binop, and ir_last_opcode. They are set to the previous one so they don't trigger "unhandled case in switch statement" warnings, but should never be handled directly. This allows us to remove the huge array of 1s and 2s in ir_expression::get_num_operands().
2010-11-17r600g: code cleanup (indent, trailing space, empty line ...)Jerome Glisse9-73/+70
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-17glsl: Remove the ir_binop_cross opcode.Kenneth Graunke7-54/+8
2010-11-17Refresh autogenerated file builtin_function.cpp.Kenneth Graunke1-3/+5
2010-11-17glsl: Reimplement the "cross" built-in without ir_binop_cross.Kenneth Graunke1-3/+5
We are not aware of any GPU that actually implements the cross product as a single instruction. Hence, there's no need for it to be an opcode. Future commits will remove it entirely.
2010-11-17Regenerate glcpp parser.Kenneth Graunke1-85/+90
2010-11-17glsl: Unconditionally define GL_FRAGMENT_PRECISION_HIGH in ES2 shaders.Kenneth Graunke1-1/+6
This is really supposed to be defined only if the driver supports highp in the fragment shader - but all of our current ES2 implementations do. So, just define it. In the future, we'll need to add a flag to gl_context and only define the macro if the flag is set. "Fixes" freedesktop.org bug #31673.
2010-11-17egl_dri2: Add missing intel chip ids.Robert Hooker1-0/+12
Signed-off-by: Robert Hooker <robert.hooker@canonical.com>
2010-11-17glsl: Fix Doxygen tag \file in recently renamed filesChad Versace23-23/+23
2010-11-17glsl: Fix erroneous cast in ast_jump_statement::hir()Chad Versace1-2/+1
Return values were erroneously cast from (ir_rvalue*) to (ir_expression*). NOTE: This is a candidate for the 7.9 branch.
2010-11-17glsl: Fix constant expression handling for <, >, <=, >= on vectors.Kenneth Graunke1-48/+60
ir_binop_less, ir_binop_greater, ir_binop_lequal, and ir_binop_gequal are defined to work on vectors as well as scalars, as long as the two operands have the same type. This is evident from both ir_validate.cpp and our use of these opcodes in the GLSL lessThan, greaterThan, lessThanEqual, greaterThanEqual built-in functions. Found by code inspection. Not known to fix any bugs. Presumably, our tests for the built-in comparison functions must pass because C.E. handling is done on the ir_call of "greaterThan" rather than the inlined opcode. The C.E. handling of the built-in function calls is correct. NOTE: This is a candidate for the 7.9 branch.
2010-11-17r300g: print FS inputs uninitialized due to hardware limits to stderrMarek Olšák1-7/+17
2010-11-17r600c/evergreen: texture align is group_bytes just like 6xx/7xxAlex Deucher2-14/+15
Default group bytes to 512 on evergreen. Don't query tiling config yet for evergreen, the current info returned is not adequate for evergreen (no way to get bank info).
2010-11-16mesa: minor clean-ups in context codeBrian Paul1-9/+26
2010-11-16mesa: reorder texture_error_check() paramsBrian Paul1-15/+15
To better match other functions.
2010-11-16mesa: 80-column wrappingBrian Paul1-13/+16
2010-11-16mesa: whitespace cleanupsBrian Paul1-35/+37
2010-11-16mesa: fix error messages and minor reindentingBrian Paul1-6/+9
2010-11-16Refresh autogenerated glcpp parser.Kenneth Graunke2-200/+210
2010-11-16glcpp: Define GL_FRAGMENT_PRECISION_HIGH if GLSL version >= 1.30.Kenneth Graunke1-0/+3
Per section 4.5.4 of the GLSL 1.30 specification.
2010-11-17r600g: Synchronize supported color formats between Evergreen and r600/r700.Henri Verbeet1-1/+4
2010-11-17r600g: Swizzle vertex data only once.Henri Verbeet2-35/+4
Vertex data swizzles are already done in the vertex shader. Doing them twice breaks BGRA vertex arrays for example.
2010-11-16r300g: remove the hack with OPCODE_RETMarek Olšák1-4/+1
RET was interpreted as END, which was wrong. Instead, if a shader contains RET in the main function, it will fail to compile with an error message from now on. The hack is from early days.
2010-11-16glsl: Simplify generation of swizzle for vector constructorsIan Romanick1-6/+5
2010-11-16glsl: Refactor is_vec_{zero,one} to be methods of ir_constantIan Romanick3-68/+101
These predicates will be used in other places soon.
2010-11-16libgl-gdi: Allow to pick softpipe/llvmpipe on runtime.José Fonseca3-146/+64
2010-11-15mesa: Add definitions for inverse hyperbolic function on MSVC.Vinson Lee1-0/+3
2010-11-15glsl: Add ir_constant_expression.cpp to SConscript.Vinson Lee1-0/+1
This was accidentally removed in commit 32aaf89823de11e98cb59d5ec78c66cd3e74bcd4. Fixes SCons builds.
2010-11-15glsl: remove opt_constant_expression.cpp from SConscriptBrian Paul1-3/+2
And alphabetize the opt_* files.
2010-11-15mesa: add more work-arounds for acoshf(), asinhf(), atahf()Brian Paul1-0/+3
2010-11-15glsl: fix assorted MSVC warningsBrian Paul1-13/+13
2010-11-15st/mesa: fix glDrawPixels(depth/stencil) bugsBrian Paul1-13/+39
When drawing GL_DEPTH_COMPONENT the usual fragment pipeline steps apply so don't override the depth state. When drawing GL_STENCIL_INDEX (or GL_DEPTH_STENCIL) the fragment pipeline does not apply (only the stencil and Z writemasks apply) so disable writes to the color buffers. Fixes some regressions from commit ef8bb7ada98f1ddc8e2554a7336af5d669cb1290
2010-11-15glsl: Rename various ir_* files to lower_* and opt_*.Kenneth Graunke25-47/+47
This helps distinguish between lowering passes, optimization passes, and other compiler code.
2010-11-15glsl: Remove unused and out of date Makefile.am.Kenneth Graunke1-81/+0
This was from when glsl2 lived in a separate repository and used automake.
2010-11-15glsl: Add constant expression handling for asinh, acosh, and atanh.Kenneth Graunke1-0/+12
2010-11-15glsl: Refresh autogenerated file builtin_function.cpp.Kenneth Graunke1-2999/+189
2010-11-15glsl: Implement the asinh, acosh, and atanh built-in functions.Kenneth Graunke5-4/+79
2010-11-15generate_builtins.py: Fix inconsistent use of tabs and spaces warning.Kenneth Graunke1-3/+3
2010-11-15glsl: Refresh autogenerated lexer and parser files.Kenneth Graunke3-2015/+2183
For the last three commits.