summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-07-29mesa: Remove unnecessary headers.Vinson Lee
2010-07-29llvmpipe: fix on-debug build breakageBrian Paul
2010-07-29llvmpipe: added some jit debug codeBrian Paul
If we crash in the jitted function we can examine jit_line and jit_state in gdb to learn more about the shader.
2010-07-29draw: do bounds checking of array elements (debug only)Brian Paul
Make sure that all the element indexes actually lie inside the vertex buffer. Also, rename pipe_run() to pipe_run_elts() to be more specific. And assert/check the vertex count for the non-indexed case.
2010-07-29draw: assorted clean-ups in clipper codeBrian Paul
2010-07-29gallium: implement bounds checking for constant buffersBrian Paul
Plumb the constant buffer sizes down into the tgsi interpreter where we can do bounds checking. Optional debug code warns upon out-of-bounds reading. Plus add a few other assertions in the TGSI interpreter.
2010-07-29draw: add vertex buffer offset in draw_print_arrays()Brian Paul
2010-07-29llvmpipe: silence warnings in lp_test_sincos.cBrian Paul
2010-07-29r600g: mipmap early support + EX2/ABS instruction + cullingJerome Glisse
Add mipmap support (demos/src/redbook/mipmap is working) Add EX2/ABS shader instruction support. Add face culling support. Misc fixes. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-29glx: Fix copy/paste bug in glXWaitX and glXWaitGLKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29304
2010-07-29glx: Compare old ctx against dummyCtx, not NULLKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-29glx: Fix linked list deletion in __glXCloseDisplay()Kristian Høgsberg
I hate single linked lists.
2010-07-29intel: Declare the various tracked state variables using "extern"Kristian Høgsberg
2010-07-29intel: Don't depend on context config values when picking texture formatsKristian Høgsberg
2010-07-29egl_dri2: Set API version for DRM displayKristian Høgsberg
2010-07-29r300g/swtcl: fix crash in ETQW and minor fixupsMarek Olšák
The Draw flush inside r300_flush was the culprit. Also, no need to flush Draw when changing a state since the flush is already inside swtcl_draw_vbo.
2010-07-29r300g/swtcl: fix crash after the draw_vbo mergeMarek Olšák
2010-07-29llvmpipe: also test the new lp_build_assert() functionBrian Paul
2010-07-29llvmpipe: don't call LLVMCreateJITCompiler() twiceBrian Paul
Fixes a failed assertion with LLVM 2.6: <unnamed>::JITResolver::JITResolver(llvm::JIT&): Assertion `TheJITResolver == 0&& "Multiple JIT resolvers?"' failed. Though, not everyone seems to experience this problem.
2010-07-29gallivm: added lp_build_assert() function to make assertions in LLVM codeBrian Paul
2010-07-29Revert "gallivm: fix lp_build_sample_offset() crash when indexing a 1-D texture"José Fonseca
This reverts commit 5f90e76c54bbf4456c977b3cbca450d7a570179e. Bad cherry-pick.
2010-07-29gallivm: fix lp_build_sample_offset() crash when indexing a 1-D textureBrian Paul
If y==NULL and y_stride==NULL it means the texture is 1D. Return zero for out_i and the offset instead of garbage.
2010-07-29util: add uint version of pack_z_stencilKeith Whitwell
Useful for packing mask values.
2010-07-29scons: Use the current python executable for code generation.José Fonseca
Less susceptible to be broken.
2010-07-29draw: Also emit EMMS on generated LLVM IR.José Fonseca
2010-07-29llvmpipe: Avoid corrupting the FPU stack with MMX instructions on 32bit OSes.José Fonseca
Unfortunately LLVM doesn't emit EMMS itself, and there is no easy/effective way to disable MMX. http://llvm.org/bugs/show_bug.cgi?id=3287
2010-07-29util: Don't include xmmintrin.h.José Fonseca
Unnecessary.
2010-07-29mesa: implement RCC opcodeBrian Paul
2010-07-29mesa: update table of opcodes used by GLSLBrian Paul
2010-07-29r600: since 8744c36e added asserts - use another random register for shader ↵Andre Maasikas
with no output
2010-07-29st/python: Adapt to interface change.Chia-I Wu
This is only compile tested.
2010-07-29graw/tests: Use pipe_context::draw_vbo.Chia-I Wu
The other drawing variants such as draw_arrays or draw_elements_instanced were removed. This fixes fdo bug #29287.
2010-07-29gallium: Avoid void pointer arithmetic.Chia-I Wu
This fixes fdo bug #29286.
2010-07-28mesa: Reduce arrayobj.h header file inclusion.Vinson Lee
Directly include mtypes.h instead of including context.h to include mtypes.h.
2010-07-28mesa: Remove unnecessary header.Vinson Lee
2010-07-29gallium/docs: Document draw_vbo and set_index_buffer.Chia-I Wu
Document the new unified drawing method and remove references to old ones.
2010-07-29gallium: Keep only pipe_context::draw_vbo.Chia-I Wu
That is, remove pipe_context::draw_arrays, pipe_context::draw_elements, pipe_context::draw_arrays_instanced, pipe_context::draw_elements_instanced, pipe_context::draw_range_elements.
2010-07-29gallium: Use unified pipe_context::draw_vbo.Chia-I Wu
Update u_draw_quad, st/vega, and st/mesa to use pipe_context::draw_vbo.
2010-07-29gallium: Implement draw_vbo and set_index_buffer for all drivers.Chia-I Wu
Some drivers define a generic function that is called by all drawing functions. To implement draw_vbo for such drivers, either draw_vbo calls the generic function or the prototype of the generic function is changed to match draw_vbo. Other drivers have no such generic function. draw_vbo is implemented by calling either draw_arrays and draw_elements. For most drivers, set_index_buffer does not mark the state dirty for tracking. Instead, the index buffer state is emitted whenever draw_vbo is called, just like the case with draw_elements. It surely can be improved.
2010-07-29gallium: Add pipe_context::draw_vbo and pipe_context::set_index_buffer.Chia-I Wu
This commit adds a new unified draw_vbo method to pipe_context. Unlike other draw methods, draw_vbo treats the index buffer as a state which is set with set_index_buffer.
2010-07-28mesa: Remove unnecessary header.Vinson Lee
2010-07-28egl: Fix deref before NULL-checkKristian Høgsberg
2010-07-28intel: Implement EGL_KHR_surfaceless extensionKristian Høgsberg
2010-07-28egl_dri2: Implement EGL_KHR_surfaceless_* extensionsKristian Høgsberg
2010-07-28egl: EGL_KHR_surfaceless_* extensionsKristian Høgsberg
These extensions allow an application to make a context current by passing EGL_NO_SURFACE for the write and read surface in the call to eglMakeCurrent. The motivation is that applications that only want to render to client API targets (such as OpenGL framebuffer objects) should not need to create a throw-away EGL surface just to get a current context.
2010-07-28Untangle gallium/egl/glx source sharing mess and make it compile againKristian Høgsberg
2010-07-28r600g: state context ptr in sampler_view & add I8/L8 buffer formatJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: switch btw flat/linear interpolationJerome Glisse
I am not sure how to properly handle flat shading regarding non color parameter to fragment shader. It seems we should still interpolate non color using linear interpolation and flat shade only apply to color. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: split pipe state creating/binding from hw state creationJerome Glisse
Split hw vs pipe states creation handling as hw states group doesn't match pipe state group exactly. Right now be dumb about that and rebuild all hw states on each draw call. More optimization on that side coming. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28glx: Split indirect and applegl implementations into different filesKristian Høgsberg