summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2007-03-12Implement GL_ARB_texture_rectangle supportBrian
This includes the sampler2DRect and sampler2DRectShadow types and the texture2DRect(), texture2DRectProj(), etc. built-in functions.
2007-03-12Add array bounds checking, fix memleaks, add null ptr checks.Brian
2007-03-11add NULL ptr checkBrian
2007-03-11Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.Brian
GL_MAX_DRAW_BUFFERS is currently 4. Added gl_FragData[] output for fragment programs. In _swrast_write_rgba_span() loop over the color outputs/renderbuffers.
2007-03-10Implement gl_FrontFacing for fragment shaders.Brian
For the time being, we put the gl_FrontFacing value in the FOGC.Y input register. Combining FOGC and FrontFacing in one register is a bit of a hack and may need to be changed someday.
2007-03-10add NULL ptr check in emit_cond()Brian
2007-03-09use gl_ModelViewProjectionMatrixTranspose in ftransform()Brian
2007-03-09add NULL ptr checkBrian
2007-03-09Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/context.c
2007-03-09fix _mesa_uniform_matrix() transpose bugBrian
2007-03-08added missing bvec2/3/4 constructorsBrian
2007-03-08fix broken vec4_seq, vec4_sne instructionsBrian
2007-03-08Update lessThan(), lessThanEqual() functions, improve some matrix constructors.Brian
2007-03-08Added IR_SLE and IR_SLT for <= and < operations.Brian
Using IR_SGE and IR_SGT with transposed args doesn't work since the __asm calls don't do argument matching by name, but by position. This fixes the broken lessThan() and lessThanEqual() functions.
2007-03-08fix tmp storage problem for IR_I_TO_FBrian
2007-03-08fix assertionBrian
2007-03-08; and {} statements were brokenBrian
2007-03-08remove unused new_cjump()Brian
2007-03-08IR_CJUMP0/1 no longer used/neededBrian
2007-03-08rewrite _slang_gen_select() to use IF nodeBrian
2007-03-08s/_slang_gen_hl_if/_slang_gen_if/Brian
2007-03-08s/_slang_gen_hl_if/_slang_gen_if/Brian
2007-03-08remove old assertionBrian
2007-03-08check for attempted writes to read-only varsBrian
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-03-04Propogate UsesKill information.Keith Whitwell
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