summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-08-04st/mesa: Add missing headers in st_cb_texture.h.Vinson Lee
2010-08-05dri/nouveau: Don't try to validate uninitialized teximages.Francisco Jerez
2010-08-05dri/nv20: Fix some PGRAPH_ERRORs seen with DATA_CHECK enabled.Francisco Jerez
2010-08-05dri/nouveau: Fix up software mipmap generation.Francisco Jerez
2010-08-04glsl2: Add ir_assignment::write_mask and associated methodsIan Romanick
Replace swizzles on the LHS with additional swizzles on the RHS and a write mask in the assignment instruction. As part of this add ir_assignment::set_lhs. Ideally we'd make ir_assignment::lhs private to prevent erroneous writes, but that would require a lot of code butchery at this point. Add ir_assignment constructor that takes an explicit write mask. This is required for ir_assignment::clone, but it can also be used in other places. Without this, ir_assignment clones lose their write masks, and incorrect IR is generated in optimization passes. Add ir_assignment::whole_variable_written method. This method gets the variable on the LHS if the whole variable is written or NULL otherwise. This is different from ir->lhs->whole_variable_referenced() because the latter has no knowledge of the write mask stored in the ir_assignment. Gut all code from ir_to_mesa that handled swizzles on the LHS of assignments. There is probably some other refactoring that could be done here, but that can be left for another day.
2010-08-04st/mesa: Add forward declaration in st_cb_strings.h.Vinson Lee
2010-08-04st/mesa: Add missing header in st_cb_readpixels.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-04st/mesa: Clean up header file inclusion in st_cb_rasterpos.h.Vinson Lee
2010-08-04st/mesa: Add missing header in st_cb_program.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-04r300/compiler: Remove unnecessary header.Vinson Lee
2010-08-04intel: Remove unnecessary header.Vinson Lee
2010-08-04st/mesa: Add missing headers in st_cb_flush.h.Vinson Lee
Add forward declarations. Include p_compiler.h for uint symbol.
2010-08-04st/mesa: Clean up header inclusion in st_cb_feedback.h.Vinson Lee
Replace mtypes.h with forward declaration. Include compiler.h for INLINE symbol.
2010-08-04ir_to_mesa: Clean up the mapping of samplers to Mesa's sampler uniforms.Eric Anholt
Instead of using a linker-assigned location (since samplers don't actually take up uniform space, being a link-time choice), use the sampler's varaible pointer as a hash key.
2010-08-04mesa: Don't null deref looking for Mesa IR code at compile time.Eric Anholt
The new compiler doesn't generate Mesa IR at compile time, and that compile time code previously wouldn't have reflected the link time code that actually got used. But do dump the info log of the compile regardless.
2010-08-04st/mesa: Add missing headers to st_cb_fbo.h.Vinson Lee
2010-08-04st/mesa: Clean up header file inclusion in st_cb_eglimage.h.Vinson Lee
Replace dd.h and mtypes.h with a forward declaration. Include compiler.h for INLINE symbol.
2010-08-04glsl2: Skip talloc_parent in constant_expression of non-constant arrays.Eric Anholt
2010-08-04st/mesa: Clean up header file inclusion in st_cb_drawtex.h.Vinson Lee
Replace mtypes.h with forward declarations. Include compiler.h for INLINE symbol.
2010-08-04st/mesa: Clean up header file inclusion in st_cb_drawpixels.h.Vinson Lee
Replace mtypes.h with forward declarations. Include compiler.h for INLINE symbol.
2010-08-04st/mesa: Add forward declaration in st_cb_condrender.h.Vinson Lee
2010-08-04st/mesa: Add forward declarations in st_cb_clear.h.Vinson Lee
2010-08-04st/mesa: Include missing headers in st_cb_bufferobjects.h.Vinson Lee
Include compiler.h for INLINE symbol. Include mtypes.h for gl_buffer_object symbol.
2010-08-04st/mesa: Clean up header file inclusion in st_cb_blit.h.Vinson Lee
Replaced mtypes.h and st_context.h with forward declarations. Added compiler.h for INLINE symbol.
2010-08-04st/mesa: Clean up header file inclusion in st_cb_bitmap.h.Vinson Lee
Removed mtypes.h. Include compiler.h for INLINE symbol. Added forward declarations.
2010-08-04r600: relax stride/alignment requirements for verticesAndre Maasikas
seems hw can do unaligned accesses and unaligned strides removes extra conversion when using vbo's however I needed to switch 3 component byte format to 4 component formats for tests to pass. Somewhat sililar to GL_SHORT fix done earlier removes assert and gains +2 piglit especially draw-vertices
2010-08-03r300/compiler: Always unroll loops when doing loop emulation.Tom Stellard
2010-08-03r300/compiler: r500 hw support for break and continue in loops.Tom Stellard
The BGNLOOP and ENDLOOP instructions are now being used correctly, which makes break and continue possible. The deadcode pass has been modified to handle breaks, and the compiler is more careful about which loops are unrolled.
2010-08-03r300/compiler: KILP may not always be inside an IF statement.Tom Stellard
2010-08-03r300/compiler: Don't unroll loops with continue or break.Tom Stellard
2010-08-03st/mesa: Clean up header file inclusion in st_cache.h.Vinson Lee
2010-08-03st/mesa: Add forward declarations in st_atom_shader.h.Vinson Lee
2010-08-04mesa: increase the relative address offset limit to 4096 in ARB_vp/fpMarek Olšák
Even though the spec says that the limits should be -64/+63, proprietary drivers support much larger relative offsets and some applications do depend on this non-standard behavior. Also program_parse.tab.c has been regenerated. This fixes the parser error: ARB_vp: error: relative address offset too large See also: https://bugs.freedesktop.org/show_bug.cgi?id=28628 4096 * sizeof(vec4) is the maximum size of the constant buffer on NV50. It is not supposed to be a definite hardware limit, it is for the parser not to get in the way and let the underlying driver decide whether it can run the shader or not.
2010-08-03st/mesa: Add forward declarations in st_atom_constbuf.h.Vinson Lee
2010-08-03st/mesa: Include glheader.h in st_atom.h.Vinson Lee
Include glheader.h for GLenum symbol.
2010-08-03mesa: Clean up header file inclusion in m_xform.h.Vinson Lee
Include compiler.h for CONST symbol. Remove config.h as m_xform.h uses no additional symbols from config.h.
2010-08-03mesa: Reduce header file inclusion in m_translate.h.Vinson Lee
m_translate.h does not use any additional symbols added by config.h.
2010-08-03mesa: Include missing header in m_matrix.h.Vinson Lee
2010-08-03mesa: Reduce header file inclusion in texgen.h.Vinson Lee
texgen.h doesn't use any symbols additionally added by mtypes.h.
2010-08-03mesa: Reduce header file inclusion in texcompress_fxt1.h.Vinson Lee
texcompress_fxt1.h doesn't use any additional symbols added by mtypes.h.
2010-08-02mesa: Reduce header file inclusion in syncobj.h.Vinson Lee
syncobj.h doesn't use any additional symbols that is added by context.h.
2010-08-02ir_to_mesa: Add support for 1.20 uniform initializers.Eric Anholt
Fixes: glsl-uniform-initializer-1 glsl-uniform-initializer-2 glsl-uniform-initializer-3 glsl-uniform-initializer-4 glsl1-GLSL 1.20 uniform array constructor
2010-08-02Initialize a couple of HasIndex2 fields on Mesa IR src regs.Eric Anholt
2010-08-02ir_to_mesa: Support for struct uniforms.Eric Anholt
Fixes glsl-uniform-struct.
2010-08-02ir_to_mesa: Add a constructor for ir_to_mesa_src_reg.Eric Anholt
This helps makes sure we don't miss any new fields, and makes totally uninitialized src_regs be PROGRAM_UNDEFINED.
2010-08-02Keep a local copy of the symbol name in the symbol tableIan Romanick
The symbol_header structure that tracks symbols with a particular name may have a different (longer) life time than the symbols it tracks. Not keeping a local copy of the name can lead to use-after-free errors. For example, the following sequence would trigger such an error: char *copy = strdup(name); _mesa_symbol_table_push_scope(st); _mesa_symbol_table_add_symbol(st, 0, name, NULL); _mesa_symbol_table_pop_scope(st); free(name); _mesa_symbol_table_find_symbol(st, 0, copy); With this change, the symbol table keeps a local copy of the name that has the same life time as the symbol_header for that name. This resolves some use-after-free errors with built-in functions in the GLSL compiler.
2010-08-02radeon: Add DRI2 flush extension support, so we synchronize properly.Mario Kleiner
When a DRI2 swap buffer is pending we need to make sure we have the flush extension so radeon doesn't resume rendering to or reading from the not yet blitted front buffer. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2010-08-02Revert "radeon: Add DRI2 flush extension to so we synchronize properly."Jerome Glisse
This reverts commit 8446f257b3e3ca4a3eb2c79bc357e46343e04e87.
2010-08-02radeon: Add DRI2 flush extension to so we synchronize properly.Mario Kleiner
When DRI2 swap buffer is pending (copy buffer not pageflipping) we need to make sure we have the flush extension so radeon doesn't resume rendering on the not yet blitted front buffer. Modified version of Jerome's patch to add flush extension in the correct place. This prepares a possible fix for: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2010-08-02r600: fix sin,cos functions on r600Andre Maasikas
r600 doesnt need the same normalization as r700 - instead it requires range to be truncated to -pi..pi I left the range trunc also effective on r700 althouch according the docs it has sufficent range (-512*PI, +512*PI). The instructions seem to be used not too often to cause perf loss because of this Based on patches and testing by Conn Clark and Alain Perrot