summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-03-10cell: handle NULL cso vertex_elements state object on bindRoland Scheidegger
drivers need to handle NULL cso vertex elements (and others) objects. It is possible the cso code saves/restores NULL objects (if no normal cso object was bound before this was invoked). This led to segfaults (for example demos/cubemap) for apps which were using things like creating mipmaps before drawing anything.
2010-03-10i915g: Prevent NULL dereference.Chia-I Wu
bind_vertex_elements_state may be called with NULL velems. Do nothing if that is the case.
2010-03-10svga: Disable debug message.Michal Krol
2010-03-10svga: Check if vertex elements has been bound before using it.Michal Krol
2010-03-10softpipe: Prevent NULL dereference.José Fonseca
2010-03-10trace: Make tr_public.h c++ friendly.José Fonseca
2010-03-10trace: include tr_public.hKeith Whitwell
2010-03-10Merge commit 'origin/master' into gallium-sw-api-2Keith Whitwell
2010-03-10llvmpipe: Cope with null Vertex element cso.José Fonseca
CSO can often be null. For example: 1. at initialization 2. using an util module (u_blit) right after initialization (it will push state and pop the previous null state) 3. at shutdown time (state shouldn't be bound when being destroyed) Glean was hitting 2.
2010-03-10nouveau: translate PIPE_BUFFER_USAGE_UNSYNCHRONIZEDBen Skeggs
2010-03-10nv50: inline nv50_state_flush_notify()Ben Skeggs
It's (rightly) not called from anywhere else now
2010-03-10nv50: remove nv50_context.state.instbufBen Skeggs
2010-03-10nv50: remove unnecessary macroBen Skeggs
2010-03-10nv50: move nv50_prim() into a header file rather than duplicatingBen Skeggs
2010-03-10nv50: add option to force immediate-mode submission, disable by defaultBen Skeggs
2010-03-10nv50: re-add immediate mode vertex submission pathsBen Skeggs
2010-03-10nv50: when doing inline indices, split elt lists so they fit into pushbufBen Skeggs
2010-03-10nv50: reimplement draw_elements_instance(), use for draw_elements() tooBen Skeggs
This makes draw_elements()/draw_elements_instanced() do the right thing for the non-inline elements cases, and not require flush_notify().
2010-03-10nv50: reimplement draw_arrays_instanced(), do draw_arrays() in terms of itBen Skeggs
This makes draw_arrays()/draw_arrays_instanced() do the right thing and not require the (probably broken anyway) flush_notify() usage. It also fixes a potential bug in the behaviour of reading InstanceID from shaders, where 0 should be read for non-instanced drawing, previously it was possible to read non-0 ids if mixing instanced/non-instanced.
2010-03-10nv50: rip out inline push draw paths temporarilyBen Skeggs
2010-03-10nv50: make use of scissor enable/disable methodBen Skeggs
2010-03-10nv50: move magic 0x142c stuff to after state emissionBen Skeggs
2010-03-10nv50: avoid unnecessary vp/gp/fp state changesBen Skeggs
2010-03-10nv50: remove pre_pipebuffer_map hack....Ben Skeggs
2010-03-10nv50: remove horrific abuse of nouveau_channel.flush_notifyBen Skeggs
Really though, using this at all is just not a good idea in the 3D driver. I'm almost certain the hardware will not like a reloc appearing between begin()/end().. Anyways, this is still better than before, more fixes to come..
2010-03-10nv50: always emit dummy relocs for all still-referenced buffersBen Skeggs
2010-03-10nv50: ensure enough room for state changes in current pushbufBen Skeggs
Also allows the nv50_state_validate() caller to request a minimum amount of space that itself requires, not all callers accurately use this yet but the simple cases are now accounted for. Rendering will also be dropped on the floor if validate fails now.
2010-03-10nv50: rework state emissionBen Skeggs
2010-03-10nv50: use relocs rather than re-uploading TIC all the timeBen Skeggs
2010-03-09r300g: Reorder regs, save one dword.Corbin Simpson
Or, put another way, save 10% on rendering calls.
2010-03-09svga: Don't do culling while the software pipeline is active.Keith Whitwell
It does it for us, and additionally introduces potentially back-facing triangles.
2010-03-09r300g: kill pf_component_countMarek Olšák
2010-03-09targets/libgl-xlib: add code to inject trace and identity layersKeith Whitwell
Finally we can inject layers for debug, trace and "other" with relative ease between state-tracker and driver.
2010-03-09ws/xlib: remove self-knowledge about users of xlib winsysKeith Whitwell
Several software rasterizers can make use of this winsys, but there isn't any reason why the winsys itself should know about them. This change moves that information into the libgl-xlib target. Need to fix up other targets making use of this winsys.
2010-03-09r300g: Precalculate and CSO-bind PSC state.Corbin Simpson
2010-03-09r300g: Cleanup old PSC code a bit.Corbin Simpson
2010-03-09identity: fix copy & paste errorRoland Scheidegger
2010-03-09r300g: fix gallium-vertexlementcso merge damageRoland Scheidegger
2010-03-09cell: fix up assorted compilation problemsBrian Paul
The driver is pretty much totally broken though.
2010-03-09Merge branch 'gallium-vertexelementcso'Roland Scheidegger
Conflicts: src/gallium/auxiliary/cso_cache/cso_context.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/drivers/i915/i915_context.h src/gallium/drivers/i965/brw_draw_upload.c src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_context.h src/gallium/drivers/r300/r300_render.c src/gallium/drivers/r300/r300_state_derived.c src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_clear.c
2010-03-09softpipe: silence warningKeith Whitwell
2010-03-09cell: untwiddle surface contents in flush_frontbuffer()Keith Whitwell
Don't make the shared software winsys rely on internal knowledge about the cell driver's texture twiddling. This is just a sketch and hasn't even been compile tested.
2010-03-09gallium: don't use flexible array members in drivers for vertex elements csoRoland Scheidegger
While this c99 feature should work with most compilers, valgrind doesn't really like it, and this only really saves some memory, we don't do this in similar occasions (like the blend state) neither.
2010-03-09nv30: fix typoDavid Heidelberger
Signed-off-by: David Heidelberger <d.okias@gmail.com>
2010-03-09cell: attempt conversion to sw_winsysKeith Whitwell
2010-03-09Merge commit 'origin/master' into gallium-sw-api-2Keith Whitwell
Conflicts: src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/softpipe/sp_texture.c src/gallium/drivers/softpipe/sp_winsys.h src/gallium/state_trackers/egl/common/egl_g3d.c src/gallium/state_trackers/egl/x11/native_x11.c src/gallium/state_trackers/egl/x11/native_x11.h src/gallium/state_trackers/egl/x11/native_ximage.c
2010-03-09Squashed commit of gallium-no-texture-blanketKeith Whitwell
commit f90b3f01af82b9522067b1824e21709a6fb2d3af Author: Keith Whitwell <keithw@vmware.com> Date: Mon Mar 8 14:39:44 2010 +0000 gallium: remove p_screen::surface_buffer_create This isn't very useful without texture_blanket(), which has also been removed. Note that this function hasn't been removed from the old pipe_winsys (u_simple_screen) still used internally by some drivers (eg softpipe). commit 6c462de39a4b9980a5f034a95e580efdfcb8173b Author: Keith Whitwell <keithw@vmware.com> Date: Mon Mar 8 14:27:40 2010 +0000 egl/x11: disable texture_blanket usage commit b42da9160df9f47224e5b3291b972f41767aa6e5 Merge: 4be2436 3ca9336 Author: Keith Whitwell <keithw@vmware.com> Date: Mon Mar 8 14:27:24 2010 +0000 Merge commit 'origin/master' into gallium-no-texture-blanket Conflicts: src/gallium/drivers/svga/svga_screen_texture.c commit 4be2436316929e3dfc55bc34d810920c06556b66 Author: Keith Whitwell <keithw@vmware.com> Date: Thu Mar 4 14:59:26 2010 +0000 gallium: remove texture blanket call No longer needed, except for nouveau and egl/xll/native_ximage.c. Fix for nouveau is to keep the call, but move it to an internal function within nouveau. Fix for that egl/x11 relies on gallium-sw-api branch or its successor. commit 69b6764330367d63c237d0bde9fb96435d0e0257 Author: Keith Whitwell <keithw@vmware.com> Date: Thu Mar 4 13:35:16 2010 +0000 drm_api: wrap comment
2010-03-09r300g: remove hacks from translate_vertex_data_swizzleMarek Olšák
The first part of the fix of BGRA vertex colors.
2010-03-09softpipe: quads never provoke the first vertexMarek Olšák
2010-03-09llvmpipe: quads never provoke the first vertexMarek Olšák