summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-07-113-15/+31
|\ | | | | | | | | | | Conflicts: src/gallium/drivers/r600/r600_pipe.c src/gallium/drivers/r600/r600_state_inlines.h
| * r600g: more valgrind fixesMarek Olšák2011-07-111-2/+2
| |
| * r600g: zero memory of ioctl parametersMarek Olšák2011-07-111-3/+3
| | | | | | | | Fixes valgrind warning.
| * r600g: Check for Evergreen chip class instead of Cedar family in ↵Henri Verbeet2011-07-091-1/+1
| | | | | | | | | | | | r600_context_flush(). Signed-off-by: Henri Verbeet <[email protected]>
| * i915g: Improve flushing using heuristics.Stéphane Marchesin2011-07-061-0/+10
| |
| * r600g: fix buffer overflow check in r600_query_beginVadim Girlin2011-07-051-2/+5
| |
| * r600g: fix bo map usage flags in r600_query_beginVadim Girlin2011-07-051-1/+1
| |
| * r600g: reduce flushes for queriesVadim Girlin2011-07-051-5/+8
| |
| * r600g: fix buffer offset in r600_query_beginVadim Girlin2011-07-051-1/+1
| |
* | [g3dvl] stop calling dri2DestroyDrawableChristian König2011-07-091-16/+0
| | | | | | | | | | | | When switching channels with xine it sometimes happens that xine destroys the drawable before we get a chance to call DRI2DestroyDrawable, resulting in an x error.
* | [g3dvl] and finally remove pipe_video_contextChristian König2011-07-083-29/+4
| |
* | [g3dvl] remove the unused priv member from pipe_video_contextChristian König2011-07-082-6/+2
| |
* | [g3dvl] remove create_surface from video contextChristian König2011-07-082-4/+4
| |
* | [g3dvl] make pipe_context mandatory for creation pipe_video_contextChristian König2011-07-083-7/+30
| |
* | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-07-0414-132/+159
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac src/gallium/drivers/r600/r600_state_inlines.h src/gallium/tests/trivial/Makefile src/gallium/winsys/g3dvl/dri/XF86dri.c src/gallium/winsys/g3dvl/dri/driclient.c src/gallium/winsys/g3dvl/dri/driclient.h src/gallium/winsys/g3dvl/dri/xf86dri.h src/gallium/winsys/g3dvl/dri/xf86dristr.h src/gallium/winsys/r600/drm/r600_bo.c
| * r600g: fix check for empty csVadim Girlin2011-06-301-1/+3
| |
| * scons: Expose pkg-config in a simpler manner.José Fonseca2011-06-305-13/+5
| |
| * st/egl: update fbdev backendChia-I Wu2011-06-282-29/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Considering fbdev as an in-kernel window system, - opening a device opens a connection - there is only one window: the framebuffer - fb_var_screeninfo decides window position, size, and even color format - there is no pixmap Now EGL is built on top of this window system. So we should have - the fd as the handle of the native display - reject all but one native window: NULL - no pixmap support modeset support is still around, but it should be removed soon.
| * r600g: fix num_banks interpretation on eg+Alex Deucher2011-06-221-1/+14
| | | | | | | | | | | | | | | | | | Field is encoded: 0 = 4 banks 1 = 8 banks 2 = 16 banks Signed-off-by: Alex Deucher <[email protected]>
| * winsys/wayland: Fix warningBenjamin Franzke2011-06-211-0/+1
| |
| * r600g: Allow VRAM for the initial domain for every buffer binding.Mathias Fröhlich2011-06-131-15/+11
| |
| * r600g: Set the domains value also for recycled buffer objects.Mathias Fröhlich2011-06-131-12/+14
| |
| * i915g: implement fence signallingDaniel Vetter2011-06-111-2/+6
| | | | | | | | | | | | v2: Incorporated feedback from Jakob Bornecrantz. Signed-off-by: Daniel Vetter <[email protected]>
| * r600g: VGT_PRIMITIVE_TYPE is specialAlex Deucher2011-06-092-3/+3
| | | | | | | | | | | | | | It's a special reg and does not require a flush like the other CONFIG regs. Signed-off-by: Alex Deucher <[email protected]>
| * r600g: Handle CONFIG regs properlyAlex Deucher2011-06-092-32/+31
| | | | | | | | | | | | | | | | | | | | CONFIG regs (byte offsets 0x8000-0xac00) are single state and the pipeline must be flushed and hw idle when they are changed. Border color regs are in the CONFIG range and this is why a flush is required when changing them. CONTEXT regs (byte offset 0x28000+) are multi-state and those do not require flushes when changing them. Signed-off-by: Alex Deucher <[email protected]>
| * r600g: adjust vs/ps gprs on r600/r700 cards when needed.Dave Airlie2011-06-092-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ideally we'd have a compiler and register spilling and all that but this is good enough for now to avoid the gpu hang in piglit, glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined on r600/r700 cards. based on r600c patch Andre Maasikas <[email protected]> r600c: bump sq gpr resources if a shader needs more than default Signed-off-by: Dave Airlie <[email protected]>
* | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-06-0910-989/+478
|\| | | | | | | | | | | Conflicts: src/gallium/tests/unit/u_format_test.c src/gallium/winsys/r600/drm/r600_hw_context.c
| * gallium: s/bool/boolean/Brian Paul2011-06-082-3/+3
| |
| * r600g: set enable always bits for r600/r700 sq registers.Dave Airlie2011-06-081-11/+11
| | | | | | | | | | | | This makes sure these are enabled even if set to 0 at startup. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: fix warnings in winsys.Dave Airlie2011-06-081-5/+2
| | | | | | | | Signed-off-by: Dave Airlie <[email protected]>
| * r600g: enable dynamic GPR resource management on evergreenDave Airlie2011-06-081-2/+4
| | | | | | | | | | | | | | | | | | | | | | Evergreen can do this as well as cayman, so we should enable it. This fixes a gpu lockup with glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined.shader_test I need to add a better workaround for r600/r700. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: only add blocks once to the dirty/enabled lists.Dave Airlie2011-06-081-3/+5
| | | | | | | | | | | | This caused a loop in some tests. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: fix regression in recent state changes.Dave Airlie2011-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | We weren't emitting the SQ setup regs at all which really is fail. When a state is always enabled we need to add it to the dirty list as well. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: move simple part of bo reloc processing inline.Dave Airlie2011-06-082-12/+17
| | | | | | | | | | | | | | This just moves the messy stuff out of the fast path, and leaves the fast-case in the fast path. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: split resource emit path from main register emit pathDave Airlie2011-06-083-17/+102
| | | | | | | | | | | | | | | | | | Since resources don't generally vary in size, this splits the emit path, it also takes into a/c that texture and vertex resources have different number of relocs, and avoids emitting the extra reloc for vertex resources. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: exit bo per reg scanning loop early.Dave Airlie2011-06-082-9/+13
| | | | | | | | | | | | | | | | | | Exit this loop early to avoid pointless iterations later. Move the resource bos to the first two regs, it actually doesn't matter which regs we use for this in resource land. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: reorder evergreen draw packets to be smaller.Dave Airlie2011-06-081-4/+8
| | | | | | | | | | | | | | We were always re-emitting lots of unnecessary changes here, avoid doing that. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: inline r600_bo_reference.Dave Airlie2011-06-082-11/+2
| | | | | | | | | | | | This relies on the reference member being first, so document it. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: no need to drop the references here.Dave Airlie2011-06-081-2/+0
| | | | | | | | | | | | We drop them when we reference the new objects in the next line. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: use memcmp instead of a loop in state_set_resourceDave Airlie2011-06-081-5/+3
| | | | | | | | Signed-off-by: Dave Airlie <[email protected]>
| * r600g : fix incorrect size computation in r600_query_resultPierre-Eric Pelloux-Prayer2011-06-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | query->num_results already has the size in dwords of the query buffer. There no need to multiply again. We were reading past the end of the buffer, resulting in reading garbage. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=37028 agd5f: clarify the comment. Signed-off-by: Alex Deucher <[email protected]>
| * r600g: remove pre-r6xx asic families and pci idsAlex Deucher2011-06-071-3/+0
| | | | | | | | | | | | Not sure why these were included originally. Signed-off-by: Alex Deucher <[email protected]>
| * r600g: always clear query memoryAlex Deucher2011-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | According to the hw documentation, the driver needs to: - allocate 128 bits for each possible DB - clear the 128 bits for each possible DB - write 1 to bits 127 and 63 for upper DBs that don't exist on a particular asic Previously we were only doing these steps if the asic had less than the max possible DBs. Signed-off-by: Alex Deucher <[email protected]>
| * r300g: Remove is_r3xxBenjamin Franzke2011-06-073-215/+9
| | | | | | | | | | | | Use r300_pci_ids.h instead. Reviewed-by: Alex Deucher <[email protected]>
| * r600g: Use radeon pciid list for the family lookup tableBenjamin Franzke2011-06-072-481/+6
| | | | | | | | Reviewed-by: Alex Deucher <[email protected]>
| * r600g: optimise the draw emission packets for r600/egDave Airlie2011-06-072-30/+37
| | | | | | | | | | | | This just reduces code size a bit for this chunk. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: use an enabled list to track enabled blocks.Dave Airlie2011-06-073-35/+54
| | | | | | | | | | | | | | | | At the end of flushing we were scanning over 450 blocks with generally about 50 enabled. This reduces the scanning to just the list of enabled blocks. Signed-off-by: Dave Airlie <[email protected]>
| * r600g/winsys: overhaul resource range/blocks.Dave Airlie2011-06-073-65/+106
| | | | | | | | | | | | | | There isn't much point taking the overhead of range/block lookups on resources we aren't going to be getting resource registers at wierd offsets. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: split out block initDave Airlie2011-06-071-46/+55
| | | | | | | | | | | | | | This just splits this function up as pre-cursor to reusing the internals of it. Signed-off-by: Dave Airlie <[email protected]>
| * r600g: move resource setting to its own structures.Dave Airlie2011-06-073-28/+30
| | | | | | | | | | | | | | | | | | resource setting could be a fair bit more lightweight, this patch just separates the resource structs from the standard reg tracking structs in the driver, later patches will improve the winsys. Signed-off-by: Dave Airlie <[email protected]>