summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-11-12util: Add log2() definition for MSC.Michal Krol
2008-11-12draw: Add missing include.Michal Krol
2008-11-12glx: fix xcb buildHanno Böck
2008-11-11Merge commit 'origin/master' into gallium-0.2Brian Paul
Conflicts: src/mesa/shader/prog_execute.c src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
2008-11-11mesa: fix version check in dinoshade.cBrian Paul
2008-11-11mesa: allow relative indexing into all register files and indirect dst ↵Brian Paul
register indexing
2008-11-11cell: implement NRM3 opcodeBrian Paul
2008-11-11CELL: two-sided stencil fixesRobert Ellison
With these changes, the tests/stencil_twoside test now works. - Eliminate blending from the stencil_twoside test, as it produces an unneeded dependency on having blending working - The spe_splat() function will now work if the register being splatted and the destination register are the same - Separate fragment code generated for front-facing and back-facing fragments. Often these are the same; if two-sided stenciling is on, they can be different. This is easier and faster than generating code that does both tests and merges the results. - Fixed a cut/paste bug where if the back Z-pass stencil operation were different from all the other operations, the back Z-fail results were incorrect.
2008-11-11Don't mess with emacs tab width.Kristian Høgsberg
2008-11-11mesa: restore the negate flag of dots in build_lighting.Xiang, Haihao
Dots is re-used if more than one light is enabled. Previously the negate flag of dots may affect next light.
2008-11-11intel: reset cliprect_mode to IGNORE_CLIPRECTS.Xiang, Haihao
This ensures all batchbuffers have a same cliprect mode after calling _intel_batchbuffer_flush even if there aren't invalid commands in the current batch buffer. (fix bug#18362).
2008-11-11mesa: restore the negate flag of dots in build_lighting.Xiang, Haihao
Dots is re-used if more than one light is enabled. Previously the negate flag of dots may affect next light.
2008-11-11mesa: update new state for RasterPos like other operations.Xiang, Haihao
This fixes a lighting issue when drawing a bitmap.
2008-11-10gallium: fix comment again. A half-closed interval was intended.Brian
Never saw the [a,b[ notation before.
2008-11-10mesa: new _mesa_is_pow_two() functionBrian
2008-11-10mesa: restore glapi/ prefix on #includeBrian Paul
2008-11-10dri: alloc __DRIscreen object with calloc()Brian Paul
Conflicts: src/mesa/drivers/dri/common/dri_util.c
2008-11-10mesa: fix logic error in GLSL linker when looking for main() shadersBrian Paul
2008-11-10mesa: fix some misc breakage caused by editing auto-generated files rather ↵Brian Paul
than the python generators Specifically: #include "glapitable.h" in src/mesa/main/glapi/dispatch.h Call _mesa_bsearch() in src/mesa/main/enums.c.
2008-11-10GLX: fix out-of-bounds memory issue in indirect glAreTexturesResident()Brian Paul
See bug 18445. When getting array results, __glXReadReply() always reads a multiple of four bytes. This can cause writing to invalid memory when 'n' is not a multiple of four. Special-case the glAreTexturesResident() functions now. To fix the bug, we use a temporary buffer that's a multiple of four bytes in length. NOTE: this commit also reverts part of commit 919ec22ecf72aa163e1b97d8c7381002131ed32c (glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protection) which directly edited the indirect.c file rather than the python generator! I'm not repairing that issue at this time.
2008-11-10dri: alloc __DRIscreen object with calloc()Brian Paul
2008-11-10mesa: track initialization status of uniform variables. Plus, asst clean-ups.Brian Paul
2008-11-10mesa: initial support for uniform variable initializers.Brian Paul
This lets one specify initial values for uniforms in the code, avoiding the need to call glUniform() in some cases.
2008-11-10mesa: fix logic error in GLSL linker when looking for main() shadersBrian Paul
2008-11-10mesa: allows 'f' suffix on GLSL float literalsBrian Paul
2008-11-10undo accidental changes to multitex.frag shaderBrian Paul
2008-11-10Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
Conflicts: src/gallium/auxiliary/util/u_math.c
2008-11-10Mesa: fix number of buffers in st_draw_vbo().Pekka Paalanen
The clean-up call to pipe->set_vertex_buffers() should use the same number of buffers as the first call. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-10gallium: fix typos in commentsBrian Paul
2008-11-10gallium: actually flip the coordinatesZack Rusin
2008-11-10nouveau: remove previous hack around x86_64 breakageBen Skeggs
This hack now causes breakage *doh*. :)
2008-11-10nv40: init pipe_surface correctlyBen Skeggs
2008-11-10nouveau: pass object handle not pointer to GPU...Ben Skeggs
2008-11-10Merge remote branch 'origin/gallium-0.2' into gallium-0.2Ben Skeggs
2008-11-09util: Fix util_fast_pow/exp2/log2.Brian
- Use a lookup table for log2. - Compute (float) (1 << ipart) by tweaking with the exponent directly to avoid integer overflow and float conversion. - Also table negative exponents to avoid float division and branching. - Implement util_fast_exp as function of util_fast_exp2. -------- Cherry-picked from gallium-0.2: 8415d06d90a197e16554dab98d160334fd9f9f93 This fixes some pow() glitches seen in fslight.c, spectex.c, etc. Conflicts: src/gallium/auxiliary/util/u_math.h
2008-11-09gallium: _debug_vprintf() should be silent if DEBUG is not definedBrian
2008-11-09gallium: use PIPE_ARCH_SSE to protect use of SSE instrinsics onlyBrian
This allows us to use SSE codegen with debug builds again. When PIPE_ARCH_SSE is set (w/ gcc -msse -msse2) we will also use the gcc SSE intrinsic functions.
2008-11-09Mesa: fix number of buffers in st_draw_vbo().Pekka Paalanen
The clean-up call to pipe->set_vertex_buffers() should use the same number of buffers as the first call. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-09Nouveau: fix nv20_vertex_layout()Pekka Paalanen
The function should update nv20->vertex_info, and not just a local struct that's thrown away immediately. Fixes a SIGFPE due to vbuf->vertex_size = 0 in vbuf_alloc_vertices(). Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08mesa: remove OPCODE_INT #defineBrian
2008-11-08gallium: implement SSE codegen for TGSI_OPCODE_NRM/NRM4Brian
2008-11-08mesa: use NRM3 in emit_normalize_vec3() when drivers are readyBrian
2008-11-08Nouveau: update nv20 miptree according to nv40.Pekka Paalanen
glxinfo doesn't degfault anymore. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08Nouveau: build, link and use nv20.Pekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08Nouveau: name replace for nv20.Pekka Paalanen
No functional changes, only changed function, struct, macro etc. names. nv10 -> nv20 nv30 -> nv20 celsius -> kelvin Did not touch fifo command macros. Don't try to build nv20_vertprog.c for now. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08Nouveau: Rename nv20/ files as nv20.Pekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08Nouveau: copy nv30_vertprog.c to nv20.Pekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-08Nouveau: start nv20 by copying the nv10 tree.Pekka Paalanen
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-11-07mesa: add support for 'centroid' qualifier in GLSL 1.20Brian Paul
2008-11-07mesa: add support for 'invariant' keyword for GLSL 1.20Brian Paul