summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2007-03-08Rework matrix-related code.Brian
GLSL matrices are stored in column-major order while GL_ARB_vertex/fragment_program use row-major. So, need to use STATE_MATRIX_TRANSPOSE for built-in matrices. Unfortunately, this means that the expression M * V isn't very efficient since we need to extract the rows out of M. And that's the typical expression for vertex transformation: gl_ModelViewProjectionMatrix * gl_Position. Solve this inefficiency by looking for M*V expressions and replacing them with V*Transpose(M). Also, add support for GLSL 1.20's MatrixTranspose, Inverse and InverseTranspose matrices.
2007-03-08fix ProjectionMatrix typoBrian
2007-03-08fix gl_TextureMatrix indexingBrian
2007-03-07more DEBUG_PROGBrian
2007-03-07update commentsBrian
2007-03-07remove unneeded return stmtBrian
2007-03-07add missing gl_Point state, fix IR storage bugBrian
2007-03-07s/diffuset/diffuse/Brian
2007-03-07regeneratedBrian
2007-03-07remove end_label fieldBrian
2007-03-07Fix problem with nested function calls such as y = f(f(x))Brian
Replace CurFunction with curFuncEndLabel.
2007-03-07s/equal/EQUAL/, fix bugs in logical or/and code.Brian
2007-03-07fix broken __postDecr()Brian
2007-03-07fix swizzled writemask bugBrian
2007-03-07remove bogus assertionBrian
2007-03-07fix incorrect HPOS write testBrian
2007-03-07additional error detectionBrian
2007-03-07check for null program ptrs in _mesa_uniform()Brian
2007-03-07Generate an error if the vertex shader does not write to gl_Position.Brian
2007-03-06more integer arithmetic updatesBrian
2007-03-06fix some int arithmetic problemsBrian
2007-03-06more DEBUG_PROG codeBrian
2007-03-06fix vert/frag typoBrian
2007-02-26Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.Brian
These control code generation options. May be overridden by drivers, debuggers, etc.
2007-02-26re-enable var scope destruct in slang_operation_destruct()Brian
2007-02-26Fix a few bugs in slang_operation variable scoping. Seems to fix a double-free.Brian
2007-02-26formatting fixesBrian
2007-02-26fix logic for reporting errorsBrian
2007-02-26disable execute bitBrian
2007-02-26fix error flaggingBrian
2007-02-26re-enable some codeBrian
2007-02-26Remove old error logging code. New slang_log.[ch] files.Brian
2007-02-26Overhaul of error handling.Brian
2007-02-26Overhaul of error logging.Brian
2007-02-26Use new slang_emit_info struct for passing context info around.Brian
2007-02-25update commentsBrian
2007-02-25fix bounds checking in get_register_pointer()Brian
2007-02-25define and use MAX_PROGRAM_ADDRESS_REGSBrian
2007-02-25Add EnvParams field to gl_program_machine, avoid passing ctx to a bunch of ↵Brian
functions.
2007-02-25simplify _mesa_get_program_register()Brian
2007-02-25s/GetFragmentProgramRegister/GetProgramRegister/Brian
2007-02-25minor clean-ups in _mesa_execute_program()Brian
2007-02-25remove 'maxInst' parameter from _mesa_execute_program()Brian
2007-02-25remove unused 'element' parameter from _mesa_execute_program()Brian
2007-02-24add missing code for newer STATE_INTERNAL itemsBrian
2007-02-24Outputs[] array wasn't large enough, define MAX_PROGRAM_OUTPUTS, new assertions.Brian
2007-02-24Remove unneeded _Fragment/VertexShaderPresent fields, update comments.Brian
2007-02-24remove commentBrian
2007-02-24Fix assertion in get_register_pointer(), fix EXP case.Brian
Note that GL_ARB_v_p and GL_NV_v_p define the z component of the EXP instruction differently. We follow the ARB extension.
2007-02-23added ARL, EXP, LOG, relative indexingBrian