summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2010-07-28glx: Move bind and unbind to context vtableKristian Høgsberg
2010-07-28glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.Kristian Høgsberg
2010-07-28glx: Rename __GLXscreenConfigs to struct glx_screenKristian Høgsberg
Because double underscores in private type names is painful.
2010-07-28glx: Use _X_EXPORT instead of our own PUBLIC macroKristian Høgsberg
We're an X client library, so we can use Xfuncproto.h.
2010-07-28glx: Rename glcontextmodes.[ch] to glxconfig.[ch]Kristian Høgsberg
2010-07-28glx: Rename __GLcontextModes to struct glx_configKristian Høgsberg
With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before.
2010-07-28glx: Delete unused glcontextmodes.c functionsKristian Høgsberg
2010-07-28glx: Stop using glcore.h and glxint.h in glxKristian Høgsberg
We'd like to get rid of these header files.
2010-07-28Avoid a compiler warning about a potentially unused variable.Carl Worth
There is no assignment to the "ret" variable if X_DRI2SwapBuffers is not defined. In this case, the earlier explicit "return 0" is likely to be used, but the compiler can't be sure of that, (nor can I for that matter). We cover this case by explicitly initializing "ret" to 0.
2010-07-28Avoid compiler warning for unused glx_dpy variable.Carl Worth
My earlier attempt to eliminate this warning (c0ca2bfb2ad8c) was invalid as it removed the variable declaration. Jerome correctly reverted that (600c85efdb0ff) since the variable is used when X_DRI2SwapBuffers is defined. Here, instead of removing the declaration, we move it to inside the correct #ifdef.
2010-07-28r600g: cleanup resource buffer/texture messJerome Glisse
Use a common function, fix the mess it was before. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: add lrp instruction supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: actualy fix the literal emissionJerome Glisse
Previous patch added literal emission to wrong place, we want to emit literal before emitting a new alu group. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28glapi: Fix VMware spelling.Vinson Lee
2010-07-28gallium/docs: Fix VMware spelling.Vinson Lee
2010-07-28draw: Fix VMware spelling.Vinson Lee
2010-07-28r600g: fix up segfault with variation between views and count.Dave Airlie
For some reason gallium hands us something with lots of empty views, and we are expected to deal with it, just do what r300g does for this bit.
2010-07-27gallium/docs: Fix VMware spelling.Corbin Simpson
2010-07-28r600g: use gallium util for float->ui conversionDave Airlie
2010-07-27scons: Fix sunos5 build.Vinson Lee
2010-07-27r600g: texture supportJerome Glisse
Add texture mapping support, redbook/texbind works if you comment out glClear and second checkboard. Need to fix : - texture overwritting - lod & mip/map handling - unormalized coordinate handling - texture view with first leve > 0 - and many other things Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-27llvmpipe: pass face+slice to llvmpipe_unswizzle_cbuf_tile()Brian Paul
Cube map faces and 3D texture slices are treated the same in llvmpipe textures. Need to pass the sum of these fields to llvmpipe_unswizzle_cbuf_tile() as we do elsewhere. Fixes piglit fbo-3d test (fd.o bug 29135).
2010-07-27r600g: Move declaration before code.Vinson Lee
Fixes SCons build.
2010-07-27swrastg: Add SWRAST_NO_PRESENT option to not send updates to X serverJakob Bornecrantz
There seem to be a problem with this path and freeglut where the window wont open if SWRAST_NO_PRESENT is set to true.
2010-07-27intel: Remove unused intel/server filesKristian Høgsberg
2010-07-27r600g: always emit literal after emiting an alu instructionJerome Glisse
Make sure we always fill in the literal after alu instruction. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-27llvmpipe: Use lp_build_select_bitwise() where appropriate.José Fonseca
Fixes fdo 29269.
2010-07-27gallivm: Add lp_build_select_bitwise() alternative to lp_build_select_bitwiseJosé Fonseca
When (mask & a) | (~mask & b) is meant instead of mask ? a : b
2010-07-26cell: comment-out unused fields, functionsBrian Paul
2010-07-26cell: make functions staticBrian Paul
2010-07-26cell: fix segfault when freeing samplersBrian Paul