Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-02-06 | Revert "mesa: meaningless whitespace change to see if git's working (ignore)" | Brian Paul | |
This reverts commit b2e779988eeb595187933fe2122d86f8ccfe059c. I didn't mean to push this stuff yet. I'm having a bad git day... | |||
2009-02-06 | mesa: meaningless whitespace change to see if git's working (ignore) | Brian Paul | |
2009-02-04 | glsl: use _slang_var_swizzle() in a few places to simplify the code. | Brian Paul | |
2009-02-04 | glsl: remove unused prototype | Brian Paul | |
2009-02-04 | glsl: replace assertion with conditional in _slang_pop_var_table() | Brian Paul | |
We were hitting the assertion when we ran out of registers, which can happen. Also, add some additional assertions and freshen up some comments. | |||
2009-02-02 | mesa: fix GLSL issue preventing use of all 16 generic vertex attributes | Brian Paul | |
Only 15 actually worked before since we always reserved generic[0] as an alias for vertex position. The case of vertex attribute 0 is tricky. The spec says that there is no aliasing between generic vertex attributes 0..MAX_VERTEX_ATTRIBS-1 and the conventional attributes. But it also says that calls to glVertexAttrib(0, v) are equivalent to glVertex(v). The distinction seems to be in glVertex-mode versus vertex array mode. So update the VBO code so that if the shader uses generic[0] but not gl_Vertex, route the attribute data set with glVertex() to go to shader input generic[0]. No change needed for the glDrawArrays/Elements() path. This is a potentially risky change so regressions are possible. All the usual tests seem OK though. | |||
2009-02-02 | glsl: update program->InputsRead when referencing input attributes | Brian Paul | |
This info will be used in the linker for allocating generic vertex attribs. | |||
2009-02-02 | mesa: make _mesa_fprint_program_opt() non-static | Brian Paul | |
2009-01-28 | Make GL_ARB_draw_buffers mandatory | Ian Romanick | |
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> | |||
2009-01-28 | Make GL_ARB_vertex_buffer_object mandatory | Ian Romanick | |
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> | |||
2009-01-28 | mesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_texture | Brian Paul | |
Everyone should be using the newer/better ARB versions of these extensions. | |||
2009-01-22 | glsl: call _mesa_write_shader_to_file(). Debug-only, disabled | Brian Paul | |
2009-01-22 | glsl: new _mesa_write_shader_to_file() function | Brian Paul | |
Used to log a shader to a file. Includes shader source code, the info log and generated GPU instructions. | |||
2009-01-22 | glsl: set shader->CompileStatus in _slang_compile() | Brian Paul | |
2009-01-22 | Merge commit 'origin/master' into gallium-0.2 | Alan Hourihane | |
Conflicts: windows/VC8/mesa/osmesa/osmesa.vcproj windows/VC8/progs/demos/gears.vcproj windows/VC8/progs/progs.sln | |||
2009-01-20 | glsl: silence unused var warnings | Brian Paul | |
2009-01-20 | mesa: silence compiler warning at -O2 | Brian Paul | |
2009-01-16 | Merge commit 'origin/master' into gallium-0.2 | Alan Hourihane | |
Conflicts: src/mesa/shader/slang/slang_compile.c | |||
2009-01-16 | glsl: fix broken sampler assignments | Brian Paul | |
2009-01-15 | glsl: use _mesa_sprintf() | Brian Paul | |
2009-01-15 | glsl: move declaration before code | Brian Paul | |
2009-01-15 | mesa: Fix merge conflicts | Jakob Bornecrantz | |
2009-01-14 | glsl: fix comment | Brian Paul | |
2009-01-14 | glsl: minor clean-up for rect sampler test | Brian Paul | |
2009-01-14 | Merge commit 'origin/master' into gallium-0.2 | Alan Hourihane | |
Conflicts: docs/install.html docs/relnotes-7.3.html src/mesa/shader/slang/slang_codegen.c src/mesa/shader/slang/slang_compile.c src/mesa/shader/slang/slang_emit.c src/mesa/shader/slang/slang_preprocess.c src/mesa/shader/slang/slang_preprocess.h | |||
2009-01-14 | glsl: propagate pragma info down into compiler from preprocessor | Brian Paul | |
2009-01-14 | glsl: simplify IR storage for samplers | Brian Paul | |
Don't overload the Size field with the texture target, to avoid confusion. | |||
2009-01-14 | Treat image units and coordinate units differently. | Ian Romanick | |
Previously MaxTextureUnits was used to validate both texture image units and texture coordinate units in fragment programs. Instead, use MaxTextureCoordUnits for texture coordinate units and MaxTextureImageUnits for texture image units. Fixes bugzilla #19468. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> | |||
2009-01-14 | glsl: fix regression from sampler arrays commit | Alan Hourihane | |
2009-01-14 | glsl: fix regression from sampler arrays commit | Alan Hourihane | |
2009-01-14 | mesa: put _NV suffix on a few opcodes | Brian Paul | |
2009-01-14 | glsl: fix a comment typo | Alan Hourihane | |
2009-01-14 | glsl: support sampler arrays. | Alan Hourihane | |
2009-01-13 | glsl: fix a comment typo | Alan Hourihane | |
2009-01-13 | glsl: support sampler arrays. | Alan Hourihane | |
2009-01-13 | glsl: add preprocessor support for #pragma | Brian Paul | |
Two forms are supported: Pragmas are silently ignored at this time. | |||
2009-01-12 | glsl: better fix for for-loop scope issue (commit ↵ | Brian Paul | |
6333005f7aea3e5d1d86a5c47b3fa2a1ed2f3ff0) | |||
2009-01-10 | glsl: force creation of new scope for for-loop body | Brian Paul | |
Fixes regression in progs/demos/convolution.c due to loop unrolling. This also allows the following to be compiled correctly: for (int i = 0; i < n; i++) { int i; ... } This fix is a bit of a hack, however. The better fix would be to change the slang_shader.syn grammar. Will revisit that... | |||
2009-01-10 | glsl: replace 0/1 with GL_FALSE/GL_TRUE | Brian Paul | |
2009-01-09 | glsl: make minimum struct size = 2, not 1 | Brian Paul | |
1-component structs such as "struct foo { float x; }" could get placed at any position within a register. This caused some trouble computing the field offset which assumed all struct objects were placed at R.x. It would be unusual to hit this case in normal shaders. | |||
2009-01-09 | glsl: fix typo in the vec2 += operator function | Brian Paul | |
2009-01-09 | glsl: fix broken +=, -=, *=, /= operators | Brian Paul | |
These functions need to return the final computed value. Now expressions such as a = (b += c) work properly. Also, no need to use __asm intrinsics in these functions. The resulting code is the same when using ordinary arithmetic operators and is more legible. | |||
2009-01-09 | mesa: fix off-by-one bug in _mesa_delete_instructions() | Brian Paul | |
2009-01-09 | mesa: additional case in file_string() | Brian Paul | |
2009-01-09 | glsl: pass GLcontext::Extension info down into GLSL preprocessor | Brian Paul | |
Now the #extension directives can be handled properly. | |||
2009-01-09 | glsl: bump up MAX_FOR_LOOP_UNROLL_COMPLEXITY | Brian Paul | |
2009-01-09 | glsl: check that the fragment shader does not write both gl_FragColor and ↵ | Brian Paul | |
gl_FragData[] | |||
2009-01-09 | glsl: disable some unused functions (but don't remove just yet) | Brian Paul | |
2009-01-09 | glsl: also unroll loops with variable declarations such as "for (int i = 0; ..." | Brian Paul | |
2009-01-09 | glsl: remove dead code | Brian Paul | |