Commit Graph

1209 Commits

Author SHA1 Message Date
José Fonseca 706eda3057 scons: Add new targets option.
This will likely change. Most probably we'll just add an alias to indvidual
targets and use the regular scons targets arguments.
2010-03-09 15:09:32 +00:00
Keith Whitwell b694f32170 winsys/gdi: get softpipe version compiling 2010-03-09 15:02:21 +00:00
Keith Whitwell 3db9644a9e ws/gdi: missing file 2010-03-09 14:49:39 +00:00
Keith Whitwell ce30b5bf2c ws/gdi: sketch of gdi changes 2010-03-09 14:32:44 +00:00
Keith Whitwell 65233674d3 cell: untwiddle surface contents in flush_frontbuffer()
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-09 14:03:41 +00:00
Keith Whitwell 8ac10162f1 ws/xlib: remove USE_XSHM preprocessor macro 2010-03-09 11:48:57 +00:00
Keith Whitwell d5bf9c0a5e ws/xlib: manage the GC internally
No need for the user of this winsys to supply/manage the x11 gc for
us.
2010-03-09 11:39:40 +00:00
Keith Whitwell 0c96690a5b Merge commit 'origin/master' into gallium-sw-api-2
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-09 11:02:37 +00:00
Chia-I Wu 95c5c69b50 st/egl: Use xlib_sw_winsys in ximage backend. 2010-03-09 12:56:47 +08:00
Chia-I Wu da92f6db5b winsys/xlib: Fix a segfault when USE_XSHM is not defined. 2010-03-09 12:51:27 +08:00
Keith Whitwell 3ab8211be4 gallium: remove xlib_driver::display_surface
Just use flush_frontbuffer directly.  The flush_frontbuffer routine has
been somewhat devalued recently, but it is actually just the right
interface for our needs.

It is in pipe_screen, meaning that any wrapping (eg trace module)
will get properly unwrapped before we try and use the pipe_surface
argument for real.

If a particular co-state-tracker needs to implement this itself, it
should organize a way to allow the winsys to call back up to its
level, rather than hijacking the driver-supplied implementation.
2010-03-08 19:23:10 +00:00
Keith Whitwell c867c58c73 gallium: make it work 2010-03-08 19:21:27 +00:00
Keith Whitwell 99f11d0e18 gallium: introduce target directory
Currently there are still at least two functions bundled up inside the
winsys concept:

a) that of a backend resource manager, sometimes capable of performing
   present() operations,

b) the initialization code/routine for the whole driver stack.

The inclusion of (b) makes it difficult to share implementations of
(a) between different drivers.  For instance, a clean xlib winsys
could be of use for software-rasterized VG, GLES, EGL, etc, stacks.
But that is only true as long as there is no dependency from the
winsys to higher level code, as would be the case when we include (b)
in this component.

This change creates a new gallium/targets subtree, specifically for
implementing the glue needed to build individual driver stacks, and
moves that code out of a single example winsys, namely xlib.

Other drivers continue to build unchanged, but hopefully can migrate
to this structure over time.
2010-03-08 19:11:35 +00:00
Keith Whitwell 90b3baf9b3 ws/xlib: remove dead files 2010-03-08 16:48:45 +00:00
Keith Whitwell 4350e025cf ws/xlib: fixup softpipe build 2010-03-08 16:48:39 +00:00
Keith Whitwell 1675d05f91 winsys/xlib: remove dependency on glx/x11 state tracker
Introduce xlib_drawable struct, pass this down to winsys instead of
having it use the internal data structures from glx/x11
2010-03-08 16:35:49 +00:00
Keith Whitwell 7f9a3959b0 ws/xlib: remove redundant declarations 2010-03-08 16:35:43 +00:00
Keith Whitwell 9b7c332d5f winsys/xlib: sketch of cell support 2010-03-08 16:35:37 +00:00
Keith Whitwell 3ca933623c Merge commit 'origin/gallium-winsys-handle-rebased' 2010-03-08 12:03:46 +00:00
Keith Whitwell 23e951d0da gallium: fix llvmpipe after winsys move 2010-03-04 16:23:05 +00:00
Keith Whitwell 94ce4eb3c2 softpipe: rework to use the llvmpipe winsys
Promote the llvmpipe winsys more or less unchanged to
state_trackers/sw_winsys.h.

Some minor breakages:
  - softpipe::texture_blanket is broken, but scheduled for removal anyway.
  - haven't fixed up g3vdl yet.
2010-03-04 16:09:33 +00:00
Jakob Bornecrantz caa8a365c5 svga: Forgot one bit in rebase 2010-03-04 14:57:44 +00:00
Jakob Bornecrantz 3bd622d64e nouveau: Conversion to winsys handle
Not the best conversion that could be done.
2010-03-04 14:37:29 +00:00
José Fonseca 4028fab892 gdi: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca 907d5611b2 drm/nouveau: Rename pipe formats. 2010-03-02 10:21:55 +00:00
Jakob Bornecrantz d160eed005 r300g: Conversion to to winsys handle 2010-03-01 16:05:59 +00:00
Jakob Bornecrantz 3a2358b6c6 svga: Conversion to winsys handle 2010-03-01 16:05:58 +00:00
Jakob Bornecrantz 45089784e3 i965g: Conversion to winsys handle 2010-03-01 16:05:48 +00:00
Jakob Bornecrantz 0e1eb1b876 i915g: Conversion to winsys handle 2010-03-01 16:05:40 +00:00
Jakob Bornecrantz 3f37f23d17 gallium: Reorg texture usage flags
Introduce a new shared usage and rename primary to scanout.
The display target usage is more of a windows concept and
doesn't mean the same thing as shared. Display target means
that the surface should be presentable, for softpipe this
means that it should be backed by a hardware buffer.
2010-03-01 16:05:35 +00:00
Marek Olšák c05f998f02 radeong: clean up includes 2010-02-27 18:40:47 +01:00
Jakob Bornecrantz cfbf75670d vmware/xorg: Bump to match vmware driver 2010-02-27 02:12:48 +00:00
Thomas Hellstrom 55e5737bae st/xorg: Encapsulate all customizable stuff in a separate class.
This avoids exposing the ms driver structure to the winsys,
and nicely encapsulates driver customizable stuff.
In the future more things might be customizable by the winsys, like
throttling, 3D readback etc.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-02-27 02:12:47 +00:00
Jakob Bornecrantz ab8a232b2c vmware/xorg: Export modinfo just as the other vmware X drivers does 2010-02-27 02:12:47 +00:00
Jakob Bornecrantz d11f9a7bd8 drm/vmware: Latest interface changes are backwards incopatible
Since the execbuffer change actually changed size off the ioctl
struct and not just a reuse of padded bits, we can't support
old kernels as easily as the scanout change was.
2010-02-27 02:12:47 +00:00
Thomas Hellstrom 0a1b760cd2 st/xorg, vmware/xorg: Fix xnfcalloc arguments.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-02-27 02:12:47 +00:00
Thomas Hellstrom 4fd43b0922 vmware: Update vmwgfx_drm.h to kernel version.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-02-27 02:12:47 +00:00
George Sapountzis 900b163a86 minor cleanup of dri/Makefile.template's after miniglx drop
also makes the WINDOW_SYSTEM configure var useless ...
2010-02-26 04:02:41 +02:00
José Fonseca db2e1518ff scons: Always build trace driver
There are so many state trackers and winsys that rely on it for debug
building, and trace can really build anywhere and is thin so there's no
point is making it an option.

Based on  Xavier Chantry <chantry.xavier@gmail.com>'s patch:

"I also removed the trace check in xlib SConscript which is now useless, and
that script seems to deal with the cell driver, so I added cell in the check
for supported drivers."
2010-02-25 17:02:52 +00:00
Brian Paul ccd78fed88 gallium: remove $(DEFINES) from cc/c++ command lines
The $(DEFINES) is already in $(CFLAG)S and (CXXFLAGS).
This prevents all the -D args appearing twice in the compilation commands.
2010-02-24 12:03:59 -07:00
Dave Airlie b14548ea32 Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"
This reverts commit fff5be8e7b.

Probably went too soon with this, dileX reported OA not working for him
it works here fine, but the optimisations I wanted aren't working properly
yet so I'll fix that now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22 17:26:35 +10:00
Dave Airlie fff5be8e7b r300g: rebuild winsys/pipe buffer handling and add buffer map
This creates a cleaner winsys and drop the simple screen stuff.

It makes r300g use pb_bufmgr structs and adds usage of the cached
bufmgr for vertex/index buffers.

It also avoids mapping too often.

I'm not 100% sure this is perfect but it won't find its own bugs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22 16:23:44 +10:00
Chia-I Wu 9a939adf7d winsys/drm: Do not use --whole-archive in Makefile.egl.
--whole-archive is not portable.  Have the drivers reference _eglMain as
a poor man's --whole-archive.
2010-02-18 13:07:01 +08:00
Marek Olšák f7db96cd8f radeong: flush when changing tiling flags of BO referenced by CS 2010-02-14 18:20:18 +01:00
José Fonseca 50812e633f progs/gallium/python: New home for python statetracker scripts. 2010-02-14 11:16:41 +00:00
José Fonseca 8ce747defa gdi: Never fail at DLL load time.
Windows doesn't really expect things to fail at this point -- it
will try many times until it finally gives up, worse, something bad
happens.

The WGL state tracker will gracefully decline to do work even when it
is loaded.
2010-02-12 11:40:02 +00:00
José Fonseca c72e8b3edd scons: Fix drm/intel build. 2010-02-11 11:51:32 +00:00
Jakob Bornecrantz 6ef1d60407 vmware/core: Support drm interface version 1.0.0 2010-02-06 03:36:47 +01:00
Jakob Bornecrantz 6a4cd124af vmware/core: Use correct flags in scanout code 2010-02-06 03:36:47 +01:00
Jakob Bornecrantz 6ffb6318a0 vmware/core: Handle new scanout field 2010-02-06 03:36:47 +01:00
Jakob Bornecrantz a9d61c286d vmware/core: Update header to latest version 2010-02-06 03:36:46 +01:00
Jakob Bornecrantz 7afcfa0683 vmware/core: Remove old ioctl structs not used
Leftover that was never used in this driver
2010-02-06 03:36:46 +01:00
Corbin Simpson 74d23546c7 radeong: Provide drm_api::destroy hook.
Pedantic Corbin is pedantic.
2010-02-08 14:03:28 -08:00
Corbin Simpson 184cefcd8c radeong: Always return something for create_screen.
Prevents a segfault on e.g. r600.
2010-02-08 13:37:55 -08:00
Keith Whitwell a23357ca60 gallium: remove softpipe references in other drivers 2010-02-08 17:17:59 +00:00
Keith Whitwell 6447b20ce0 drm/radeon: remove softpipe references 2010-02-08 17:17:58 +00:00
Keith Whitwell 7f41f5447c gallium: squash-merge of gallium screen context
Squashed commit of the following:

commit 009598122adf5cad42bf9af067eccaf8e89e1233
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date:   Mon Feb 8 11:03:26 2010 +0000

    nouveau: fix gallium-screen-context branch fallout

commit 7b2ffc2019d72e833afea7eebf3e80121187375d
Merge: 51e190e c036d13
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Feb 5 09:55:02 2010 +0000

    Merge commit 'origin/master' into gallium-screen-context

    Conflicts:
    	src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c

    This branch has got a pretty tortured history now, I expect
    a squash merge will be appropriate when it is done.

commit 51e190e95acf120f72768fafb29e9721e358df1b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 17:58:02 2010 +0000

    gallium: fix some build issues

commit f524bdaa723fb181637ad30c6ad708aeedabe25b
Merge: f906212 3aba0a2
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 17:51:32 2010 +0000

    Merge commit 'origin/master' into gallium-screen-context

commit f9062126883199eabf045714c717cd35f4b7b313
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 17:17:12 2010 +0000

    gallium/docs: small description of screen::create_context

commit efcb37bd3d5ed37f06c6105bd2d750b374ec0927
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:42:42 2010 +0000

    drm/radeon: more dead create_context wrapper removal

commit 6badc0dd9e06cf2ec936940bcf12b9ef5324b301
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:42:30 2010 +0000

    drm/i965: more dead create_context wrapper removal

commit cf04ebd5a54b18b2d894cfdab2b0f2fd55626ffc
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:42:05 2010 +0000

    st/python: more dead create_context wrapper removal

commit 444f114c3516abf71c430e6e9d0d2ae3b80679d3
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:37:58 2010 +0000

    idenity: wrapped context creation

commit 5a6d09cb9e468d1ee6c8d54b887618819d8d94f2
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:28:47 2010 +0000

    ws/gdi: remove dead context_create wrapper

commit 132b55f4bec39386ac625f09aaa11f609664024c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:27:52 2010 +0000

    ws/gdi: remove dead context_create wrapper

commit 56d2d21a0cdcb197a364049d354c2f15a4fc026a
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:25:38 2010 +0000

    st/xorg: use screen::context_create

commit 838c5cfe56b2af6c644909bed3c5e7cdd64c336a
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:23:20 2010 +0000

    glx/xlib: simplify creation of trace-wrapped contexts

    Trace screen knows how to properly wrap context creation in the
    wrapped screen, so nothing special to do here.

commit c99404c03ebaec4175f08a2f363e43c9085f2635
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:18:24 2010 +0000

    st/python: no need to special case context creation for trace

commit 193a527a682b6877bb1faecd8092df4dfd055a18
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:15:30 2010 +0000

    drm/radeon: remove dead create_context declaration

commit bb984eecc25cf23bc77e1c818b81165ba1a07c9a
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:14:58 2010 +0000

    nv/drm: remove dead create_context ref

commit e809313a44287dc4e16c28e9e74ef3b2b5271aa1
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:12:51 2010 +0000

    st/egl: remove a layer of wrappers around screen::create_context

commit 39caa6672a04122f185c22e17aab86d1c40938bf
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:05:28 2010 +0000

    r300g: fill in screen::context_create

commit 407f12556d16ba0656774d8a1d9ebda22f82f473
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 16:04:04 2010 +0000

    cell: adapt for screen::create_context, untested

commit d02b0c6ce321a04c76fdabb09e0e4380ce1c1376
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:50:24 2010 +0000

    drm/nv: adapt for screen::create_context

    All contexts now created directly through the screen, so remove
    equivalent code here.

    Remove apparently un-needed array of contexts in the winsys.

commit 53eec5b1349aa1b6892a75a7bff7e7530957aeae
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:50:08 2010 +0000

    stw: adapt for screen::create_context, untested

commit c6a64de3eb381bc9a88e9fbdecbf87d77925aaf5
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:49:20 2010 +0000

    trace: expose the wrapped context's priv data

    If we are going to keep this priv idea, really want an accessor
    function for it so that trace and other drivers can wrap that.

commit 75d6104e11d86ec2b0749627ed58e35f856ee6eb
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:47:55 2010 +0000

    nv30: adapt to screen::context_create

commit 12f5deb6ed9723e9b5d34577052b8365813ca14e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:44:47 2010 +0000

    nv40: adapt to screen::context_create

commit 14baccaa3b6bbb3b91056126f6521828e786dc62
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:35:27 2010 +0000

    nv50: adapt to screen::create_context

    Not build tested.  Need to figure out how to build nouveau.

commit a0e94505ccd2d7f3e604465a2ac302f1286b73b6
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:22:27 2010 +0000

    llvmpipe: update for screen::create_context, untested

commit 0eae17107c950346030e4f7e0ec232f868d3893d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 15:16:57 2010 +0000

    xlib/llvmpipe: remove dead winsys context creation path

commit 2f69f9ffaa7e2a01d2483277246ed13051ae4ca3
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 14:58:27 2010 +0000

    gallium: convert most code to use screen::create_context

    I wish I could build all of gallium at once to find breakages.

commit d7b57f4061b82322cbcae176125913d9f0dea6c1
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 12:46:21 2010 +0000

    glx: permit building with older protocol headers

    I'd like to be able to build mesa on current distro releases without
    having to upgrade from the standard dri2proto and glproto headers.  With
    this change I'm able to build on ancient releases such as Ubuntu 9-10...

    In general, it would be nice to be able to build-test mesa to check for
    unintended breakages without having to follow the external dependencies
    of every group working on the codebase.

commit 57adedd6fb06c98572ed8d4aef19203df4c4eea2
Merge: da71847 e1906ae
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Feb 4 11:38:15 2010 +0000

    Merge commit 'origin/master' into gallium-screen-context

    Conflicts:
    	src/gallium/drivers/softpipe/sp_video_context.h
    	src/gallium/drivers/trace/tr_context.c
    	src/gallium/state_trackers/wgl/shared/stw_context.c
    	src/gallium/winsys/gdi/gdi_softpipe_winsys.c

commit da71847ea6414d7e352c6094f8963bb4eda344dc
Author: José Fonseca <jfonseca@vmware.com>
Date:   Sat May 2 08:57:39 2009 +0100

    wgl: Use pipe_screen::context_create.

commit 2595a188f93fd903600ef5d8517737ee0592035d
Author: José Fonseca <jfonseca@vmware.com>
Date:   Sat May 2 08:56:47 2009 +0100

    trace: Implement pipe_screen::context_create.

commit f3640e4ae37a5260cbfba999d079f827de0a313a
Author: José Fonseca <jfonseca@vmware.com>
Date:   Sat May 2 08:56:17 2009 +0100

    softpipe: Implement pipe_screen::context_create.

commit 347266bddc8bd39c711bacb2193793759d0f3696
Author: José Fonseca <jfonseca@vmware.com>
Date:   Sat May 2 08:55:31 2009 +0100

    gallium: New pipe_screen::context_create callback.
2010-02-08 13:05:36 +00:00
Patrice Mandin e423df0f0c nouveau: Fix warning for void function returning value. Add missing include for pipe_reference_init function.
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-02-05 19:42:33 +01:00
Francisco Jerez 5b6b67eb3f Nuke the nv0x-nv2x gallium pipe drivers. 2010-02-04 22:15:22 +01:00
Brian Paul 3aba0a2875 i965g: include u_inlines.h 2010-02-04 10:07:08 -07:00
Vinson Lee 821b3e2302 winsys: Add missing headers. 2010-02-03 18:29:18 -08:00
Dave Airlie 3584a44270 gallium: fix more missing includes from various places
nouveau/ dri st / vmware
2010-02-04 10:52:43 +10:00
José Fonseca 25357696c3 gallium: Move deprecated pipe/internal/p_winsys_screen.h inside util/u_simple_screen.h 2010-02-02 16:09:56 +00:00
José Fonseca 2aaca1df9d gallium: Move p_thread.h and p_atomic.h out of gallium interfaces.
Into os/os_thread.h and util/u_atomic.h respectively.
2010-02-02 15:18:01 +00:00
José Fonseca 38f6f23fcf gallium: Make pipe_atomic a regular int32_t. 2010-02-02 14:43:48 +00:00
José Fonseca 28486880ca gallium: pipe/p_inlines.h -> util/u_inlines.h 2010-02-02 14:42:17 +00:00
Corbin Simpson 241a0b8cf3 radeong: Slight improvement to buffer creation. 2010-01-28 03:05:46 -08:00
Brian Paul 9b22427911 Merge branch 'mesa_7_7_branch'
Conflicts:

	src/mesa/drivers/dri/intel/intel_screen.c
	src/mesa/drivers/dri/intel/intel_swapbuffers.c
	src/mesa/drivers/dri/r300/r300_emit.c
	src/mesa/drivers/dri/r300/r300_ioctl.c
	src/mesa/drivers/dri/r300/r300_tex.c
	src/mesa/drivers/dri/r300/r300_texstate.c
2010-01-25 14:46:17 -07:00
Corbin Simpson 1571602153 radeong: Make sure that we're not emitting relocations for local buffers.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson c486bfb463 radeong: Make is_r3xx inline to avoid warnings.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson 67149051be radeong: Clean up domain usages.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson 72778a9d25 Revert "r300g,radeong: finish and enable the immediate mode"
This reverts commit 112239e9a6.
2010-01-25 11:30:38 -08:00
Chia-I Wu 2204447de3 winsys/drm: Correctly install EGL drivers.
Remove extraneous quotes that prevent some drivers to be installed when
there are more than one display in EGL_DISPLAYS.
2010-01-25 23:06:05 +08:00
Jakob Bornecrantz 6877c5de3c vmware/xorg: Do buffer round-robin logic differently 2010-01-25 12:27:47 +01:00
Jakob Bornecrantz a3b783ea29 vmware/xorg: Export pci_probe function for ugly chain-loading 2010-01-25 11:24:55 +01:00
Marek Olšák 112239e9a6 r300g,radeong: finish and enable the immediate mode
Nearly 100% performance increase in glxgears.
2010-01-24 23:03:29 -08:00
Marek Olšák b7a002df1e r300g,radeong: set tiling flags in libdrm 2010-01-24 23:03:29 -08:00
Marek Olšák 8505996430 radeong: do not emit a zero-sized command stream
Fixing a hardlock introduced in fcbd285e42 and
reproducible with piglit/bugs/fdo23489.
2010-01-24 23:03:29 -08:00
Marcin Slusarz 74989972ba nouveau/winsys: be nice and close the device on destroy 2010-01-25 09:43:59 +10:00
Marcin Slusarz 283b21d02b nouveau: fix winsys object leak 2010-01-25 09:43:33 +10:00
Chia-I Wu 28c3e57c83 egl: Install drivers to ${libdir}/egl.
Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to
${libdir}/egl.
2010-01-23 20:30:11 +08:00
Brian Paul f6a49ac217 svga: fix up breakage from earlier 7.7 merge 2010-01-22 18:35:36 -07:00
Brian Paul 7b5ad23c7f Merge branch 'mesa_7_7_branch'
Conflicts:

	src/mesa/shader/prog_execute.c
2010-01-22 16:09:03 -07:00
Brian Paul efde2df114 xlib/softpipe: more buffer free fixes
The previous memory leak fix didn't always work properly.
Now check the xm_buffer::smh field (now documented!) to
see if the buffer points to shared memory.
2010-01-22 13:07:07 -07:00
Brian Paul cd8614b028 Merge branch 'mesa_7_7_branch'
Conflicts:
	src/gallium/auxiliary/draw/draw_context.c
	src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
	src/gallium/auxiliary/pipebuffer/Makefile
	src/gallium/auxiliary/pipebuffer/SConscript
	src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
	src/gallium/auxiliary/tgsi/tgsi_scan.c
	src/gallium/drivers/i915/i915_surface.c
	src/gallium/drivers/i915/i915_texture.c
	src/gallium/drivers/llvmpipe/lp_setup.c
	src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
	src/gallium/drivers/llvmpipe/lp_texture.c
	src/gallium/drivers/softpipe/sp_prim_vbuf.c
	src/gallium/state_trackers/xorg/xorg_dri2.c
	src/gallium/winsys/drm/intel/gem/intel_drm_api.c
	src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
	src/gallium/winsys/drm/radeon/core/radeon_drm.c
	src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
	src/mesa/state_tracker/st_cb_clear.c
2010-01-22 12:17:02 -07:00
Chia-I Wu 3c967a9207 st/egl_g3d: Rename to st/egl.
Simply the name to egl.
2010-01-22 16:45:28 +08:00
Chia-I Wu 3a4b7d3071 winsys/drm: Update the options of mklib in Makefile.egl_g3d.
Pass -linker, -ldflags, and $(MKLIB_OPTIONS) to mklib.
2010-01-22 16:44:13 +08:00
Chia-I Wu 3b0ffd5a36 egl: Remove egl_softpipe.
With the addition egl_x11_swrast, egl_softpipe is sort of deprecated.
The new driver serves the same purpose as egl_softpipe does.  It is
based on egl_g3d and provides more features.
2010-01-22 16:44:13 +08:00
Chia-I Wu a1306f4ef6 winsys/drm: Add swrast.
The swrast winsys always returns NULL when drm_api_create is called.
2010-01-22 16:44:09 +08:00
José Fonseca 383f460cf7 vmware/core: Update for pipebuffer changes.
In particular, delay patching GMR relocations until the buffers are
validated, since the buffers relative offset can only be established then.
2010-01-22 09:41:52 +01:00
Chia-I Wu 52d7b2cede st/egl: Remove the egl state tracker.
The egl_g3d state tracker has support for KMS, and the support is based
on the egl state tracker.  As egl_g3d provides more features, it should
be better to keep only egl_g3d to unify the efforts.
2010-01-22 15:37:56 +08:00
Chia-I Wu 883b57e66c winsys/drm: Update Makefile.template.
Mainly to respect LDFLAGS and remove unused target $(LIBNAME_EGL).  This
is based on the patch by Tomáš Chvátal <scarabeus@gentoo.org>.
2010-01-22 11:28:48 +08:00
José Fonseca a626565178 vmware/core: Flush preemptively the FIFO commands to keep the GMR working set within reasonable bounds. 2010-01-21 15:51:37 -08:00
José Fonseca beb8e8f2f2 vmware/core: Put GMR pool size in a define. 2010-01-21 15:47:52 -08:00
José Fonseca e45579e50b vmw/wgl: Update for pipebuffer changes.
This is a minimum change to keep things building and running minimally -- it
might cause applications to fail to allocate buffers due to out of
GMR memory.

A proper update will be commited later.
2010-01-21 15:27:26 -08:00
Chia-I Wu bdd2500805 Do not include glapi/dispatch.h outside Mesa core.
Include the glapi*.h directly instead.  glapi/dispatch.h became a Mesa
core header since 22884db174.
2010-01-21 17:48:38 +08:00
Corbin Simpson c1334ce235 radeong: Fix EGL driver names.
Using "radeon" instead of "radeong" because we don't have classic EGL.
2010-01-20 12:22:05 -08:00
Tomas Chvatal 1ffb72a6bf Fix touching live system during install. 2010-01-20 12:22:05 -08:00
Brian Paul a416123f5b xlib/softpipe: fix buffer memory leak
Fixes leak caused by window resize.
2010-01-20 10:34:45 -07:00
Chia-I Wu 5e8240320a Merge remote branch 'origin/opengl-es-v2' 2010-01-20 10:02:15 +08:00
Jakob Bornecrantz bea9ed4dc6 svga: Do a more propper creation of textures from handles 2010-01-19 23:30:31 +01:00
Jakob Bornecrantz a5fb5d6a54 st/drm: Expose kernel driver name
Based on patch by Chia-I Wu <olvaffe@gmail.com>

Expose the name of the kernel driver as accepted by drmOpenByName.
2010-01-19 17:10:04 +01:00
Corbin Simpson 0857f38c39 radeong: Don't allocate HW BOs for constantbufs.
We have broken 1000 FPS. Hell yes.

Heavily inspired by Marek's patch, but using pipebuffer instead of
a roll-your-own malloc.
2010-01-18 02:35:08 -08:00
Corbin Simpson 58a7d8db98 radeong: Check DRM version, and report stats. 2010-01-18 01:13:33 -08:00
Corbin Simpson 11a2bbc3e9 radeong: Use vram_size instead of vram_visible.
The kernel will decide on its own what to give us.
2010-01-18 01:13:33 -08:00
Jakob Bornecrantz 31c626811a i965g: Link against drm_intel instead of drm_radeon 2010-01-17 16:44:25 +00:00
Marek Olšák 8959608051 r300g: output texture debug messages if only RADEON_DEBUG=tex is set 2010-01-17 01:03:50 -08:00
Dave Airlie 66e561a036 i965g: make xorg state tracker build i965g_drv.so
don't make modesetting_drv.so anymore
2010-01-16 19:28:45 +10:00
Thomas Hellstrom ae97520e37 ws/vmware: Check DRM version also when bootstrapping in dri2 mode.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-01-18 15:56:57 +01:00
Corbin Simpson 8feb27b8ff radeong: Change DRI driver name to radeong. 2010-01-13 18:37:17 -08:00
Chia-I Wu 3e6139d158 egl: Add _EGLDriver as the first argument to GetProcAddress.
The rest of the driver API has it as the first argument.  It should be
there so that a driver has access to itself.
2010-01-12 17:53:57 +08:00
Chia-I Wu 562c127693 Merge branch 'master' into opengl-es-v2
Conflicts:
	src/mesa/main/dd.h
2010-01-12 11:25:02 +08:00
Chia-I Wu 077d6dd750 winsys/drm: Use egl_g3d to build EGL drivers.
The new EGL drivers use egl_g3d and respect EGL_DISPLAYS.  They are
named after the display supported and the DRM name.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12 11:09:00 +08:00
Chia-I Wu 6dafd61ab2 winsys/drm: Add name field to drm_api.
The name can be used for driver selection.  It has the same name as the
DRI driver does right now.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12 10:55:36 +08:00
Chia-I Wu 2d44b6f884 st/mesa: Remove st_api.c.
st_api.c is supposed to define st_api_OpenGL to advertise OpenGL
support.  However, the linker discards the symbol because it has no
user.  It is better to leave this to other state trackers that link to
libmesagallium.a.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-12 10:55:35 +08:00
Corbin Simpson 2bfb21790c radeong: Check for DONTBLOCK before flushing, remove dead code. 2010-01-11 05:43:29 -08:00
Marcin Kościelnicki d9de848de1 nouveau: Make winsys recognise the original NV50. 2010-01-11 15:16:12 +10:00
Chia-I Wu 064242ae9f egl_softpipe: Remove the unnecessary call to _eglSwapBuffers.
The call to _eglSwapBuffers is unnecessary, and the function is missing
when -fvisibility=hidden.  Also remove the extraneous braces and indent
the block.
2010-01-11 01:06:47 +08:00
José Fonseca d699b6720c scons: Don't build xlib when dri is enabled.
Hopefully adddresses fdo 25828.
2010-01-08 01:25:27 +00:00
José Fonseca c6509f89b4 scons: Output a meaningful message when xlib libGL.so can't be built. 2010-01-08 00:50:09 +00:00
Brian Paul 5ac16495a2 Merge branch 'mesa_7_7_branch'
Conflicts:
	docs/relnotes.html
	src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
	src/gallium/drivers/r300/r300_cs.h
	src/mesa/drivers/dri/i965/brw_wm_surface_state.c
	src/mesa/main/enums.c
2010-01-04 19:16:24 -07:00
Michel Dänzer 8282185752 vmware/xorg: Fix SCons build. 2010-01-04 13:02:40 +01:00
José Fonseca f3739bdb60 gdi: Don't generate import libraries for opengl32.dll.
Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
2010-01-03 20:00:19 +00:00
José Fonseca 187066caa0 gdi: Don't generate import libraries for opengl32.dll.
Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
2010-01-02 00:01:42 +00:00
José Fonseca c847a13d38 gallium: Generate a single library for auxiliaries with Make too. 2010-01-01 12:16:19 +00:00
José Fonseca f8f4757d46 scons: Aggregate all tiny libraries in a single library.
Makes integration of gallium into out of tree components much easier. No
pratical change for components in this tree,
2010-01-01 12:16:19 +00:00
Brian Paul 25024d9482 Merge branch 'mesa_7_7_branch'
Conflicts:
	configs/darwin
	src/gallium/auxiliary/util/u_clear.h
	src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
	src/mesa/drivers/dri/i965/brw_draw_upload.c
2009-12-31 09:02:27 -07:00
José Fonseca 67171ed85f xlib: Integrate the trace driver with all pipe drivers.
And not just softpipe.

It is particularly convenient to use llvmpipe instead, since it is much
faster. It also allows to use rbug with all xlib drivers.
2009-12-28 22:53:40 +00:00
José Fonseca 7abdaf574a scons: Fix xlib build.
After glsl rework merge.
2009-12-28 22:53:40 +00:00
Brian Paul d0b7ff551a Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts:
	src/gallium/auxiliary/util/u_network.c
	src/gallium/auxiliary/util/u_network.h
	src/gallium/drivers/i915/i915_state.c
	src/gallium/drivers/trace/tr_rbug.c
	src/gallium/state_trackers/vega/bezier.c
	src/gallium/state_trackers/vega/vg_context.c
	src/gallium/state_trackers/xorg/xorg_crtc.c
	src/gallium/state_trackers/xorg/xorg_driver.c
	src/gallium/winsys/xlib/xlib_brw_context.c
	src/mesa/main/mtypes.h
2009-12-27 15:31:08 -07:00
Dave Airlie bdbabcd1e4 r300g: fix use of uninitialised variables.
These buffers were getting dereferenced later.
2009-12-27 16:13:41 +10:00
Dave Airlie 9ee5b78e7f r300g: rename modesetting_drv.so to radeong_drv.so 2009-12-27 16:13:16 +10:00
Vinson Lee aae32df718 xlib: Use C-style comments. 2009-12-22 17:51:58 -08:00
Keith Whitwell aa02683e45 Merge branch 'i965g-restart'
Conflicts:
	configure.ac
2009-12-22 09:40:39 +00:00
Brian Paul 9eb7fc6661 Merge branch 'mesa_7_7_branch'
Conflicts:
	src/mesa/main/version.h
	src/mesa/state_tracker/st_atom_shader.c
2009-12-21 18:35:54 -07:00
Keith Whitwell a5585cb533 Merge commit 'origin/master' into i965g-restart
Conflicts:
	SConstruct
	configs/default
	configs/linux-dri
2009-12-21 19:18:41 +00:00
Keith Whitwell d288a30610 ws/i965: respect DEBUG_WINSYS flag 2009-12-21 16:58:14 +00:00
Corbin Simpson a70eba5648 Revert "r300g: flush CS if a buffer being deleted is referenced by it"
As requested by just about everybody. I'm going back to actually reading
patches before ACKing and pushing them.

This reverts commit 417ce06306.

Conflicts:

	src/gallium/winsys/drm/radeon/core/radeon_buffer.c
2009-12-18 02:55:28 -08:00
Michal Krol 7855fcb63b Merge branch 'pipe-format-simplify' 2009-12-18 09:08:26 +01:00
Dave Airlie 5f59e79f3a r300g: store own copy of flush_cb and flush data.
don't go sneaking around inside the libdrm copy.
2009-12-18 10:24:50 +10:00
Michal Krol b1ed72ebe2 Move the remaining format pf_get_* functions to u_format.h.
Previously they depended on format blocks, but after removing those
they started depending on format encoding.
2009-12-17 23:41:57 +01:00
Michal Krol 16c6dce013 Merge branch 'master' into pipe-format-simplify
Conflicts:
	src/gallium/auxiliary/draw/draw_pipe_aaline.c
	src/gallium/auxiliary/draw/draw_pipe_pstipple.c
	src/gallium/auxiliary/util/u_blit.c
	src/gallium/auxiliary/util/u_gen_mipmap.c
	src/gallium/auxiliary/util/u_surface.c
	src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
	src/gallium/drivers/cell/ppu/cell_texture.c
	src/gallium/drivers/llvmpipe/lp_texture.c
	src/gallium/drivers/r300/r300_emit.c
	src/gallium/drivers/r300/r300_texture.c
	src/gallium/drivers/softpipe/sp_texture.c
	src/gallium/drivers/softpipe/sp_tile_cache.c
	src/gallium/drivers/svga/svga_state_vs.c
	src/gallium/include/pipe/p_format.h
	src/gallium/state_trackers/dri/dri_drawable.c
	src/gallium/state_trackers/egl/egl_surface.c
	src/gallium/state_trackers/python/p_device.i
	src/gallium/state_trackers/python/st_softpipe_winsys.c
	src/gallium/state_trackers/vega/api_filters.c
	src/gallium/state_trackers/vega/image.c
	src/gallium/state_trackers/vega/mask.c
	src/gallium/state_trackers/vega/paint.c
	src/gallium/state_trackers/vega/renderer.c
	src/gallium/state_trackers/vega/vg_tracker.c
	src/gallium/state_trackers/xorg/xorg_crtc.c
	src/gallium/state_trackers/xorg/xorg_dri2.c
	src/gallium/state_trackers/xorg/xorg_exa.c
	src/gallium/state_trackers/xorg/xorg_renderer.c
	src/gallium/state_trackers/xorg/xorg_xv.c
	src/gallium/state_trackers/xorg/xvmc/surface.c
	src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
	src/gallium/winsys/drm/radeon/core/radeon_buffer.c
	src/gallium/winsys/egl_xlib/sw_winsys.c
	src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
	src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c
	src/gallium/winsys/gdi/gdi_softpipe_winsys.c
	src/gallium/winsys/xlib/xlib_cell.c
	src/gallium/winsys/xlib/xlib_llvmpipe.c
	src/gallium/winsys/xlib/xlib_softpipe.c
	src/mesa/state_tracker/st_cb_fbo.c
	src/mesa/state_tracker/st_cb_texture.c
	src/mesa/state_tracker/st_texture.c
2009-12-17 22:37:15 +01:00
Michal Krol e195eab909 Merge branch 'glsl-pp-rework-2' 2009-12-17 17:00:46 +01:00
Marek Olšák 417ce06306 r300g: flush CS if a buffer being deleted is referenced by it 2009-12-15 19:04:45 -08:00
Matthew Bell 22d2547ad1 mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile 2009-12-14 21:58:19 -07:00
Vinson Lee 75e8dbb235 i915g: Silence unused value warning in intel_drm_get_device_id. 2009-12-12 16:24:25 -08:00
Michal Krol a3eb0f718e Merge branch 'master' into glsl-pp-rework-2
Conflicts:
	progs/perf/drawoverhead.c
	progs/perf/teximage.c
	progs/perf/vbo.c
	progs/perf/vertexrate.c
	src/mesa/shader/slang/library/slang_common_builtin_gc.h
2009-12-12 16:48:32 +01:00
Brian Paul a087eb590d Merge branch 'mesa_7_7_branch'
Conflicts:
	src/gallium/state_trackers/xorg/xorg_xv.c
	src/mesa/drivers/dri/intel/intel_span.c
2009-12-11 10:04:07 -07:00
José Fonseca 491f384c39 scons: Get GLSL code building correctly when cross compiling.
This is quite messy. GLSL code has to be built twice: one for the
host OS, another for the target OS.
2009-12-10 16:30:08 +00:00
Roland Scheidegger 71f4267ac2 winsys/intel: fix dereferencing of opaque type due to pipe_reference changes 2009-12-10 03:51:35 +01:00
Jakob Bornecrantz 5e2a86cb1b vmware/xorg: Properly detect overlay support 2009-12-09 09:51:05 +01:00
Jakob Bornecrantz b7cf8a1f93 vmware/core: Update vmwgfx_drm.h 2009-12-09 09:51:04 +01:00
Roland Scheidegger 4ebc54795d Merge branch 'gallium-strict-aliasing' 2009-12-08 19:26:20 +01:00
Michel Dänzer eaa3a025da Merge branch 'mesa_7_7_branch' 2009-12-08 12:25:34 +01:00
Michel Dänzer 32ccc9b0bb vmware/xorg: Fix SCons build.
Not sure how vmw_screen.c could build at all though...
2009-12-08 11:45:19 +01:00
Michel Dänzer 9e42683fb3 vmware/xorg: Avoid warning about HAVE_STDINT_H being redefined. 2009-12-08 11:43:22 +01:00
Andre Maasikas b5e256c76d Merge branch 'mesa_7_7_branch'
Conflicts:
	src/mesa/drivers/dri/r600/r700_assembler.c
	src/mesa/main/version.h
2009-12-08 11:57:24 +02:00
Corbin Simpson 12981589b7 radeong: Automatically softpipe for non-r3xx.
Well, technically non-r[345]xx. At any rate...

$ glxgears
libGL: OpenDriver: trying /home/simpson/mesa/lib/gallium/r600_dri.so
131 frames in 5.0 seconds = 26.107 FPS

I'm sure you can see where this is going. :3
2009-12-06 23:55:58 -08:00
Corbin Simpson e3a3ca097c radeong: Call softpipe_create directly.
Allows us to finally remove radeon_winsys_softpipe.
2009-12-06 23:50:31 -08:00
Marek Olšák 042b524d48 radeong: flush CS if a buffer being mapped is referenced by it
Also, overlapping occlusion queries seems to work now.
2009-12-04 09:23:59 -08:00
Marek Olšák 7679447b58 r300g, radeong: fix the CS overflow 2009-12-04 09:23:59 -08:00
Marek Olšák 3da8265cd3 r300g: fix warnings 2009-12-04 09:23:59 -08:00
Jakob Bornecrantz 6f1db18f14 vmware/xorg: Also stop ports on close 2009-12-04 16:50:26 +01:00
Jakob Bornecrantz 124f4bc977 vmware/xorg: Stop video ports on leave vt 2009-12-04 16:50:20 +01:00
Jakob Bornecrantz 1ef8c493b2 vmware/xorg: Use Write instead of WriteRead for cursor bypass 2009-12-04 10:33:34 +01:00
Jakob Bornecrantz cd4d806a47 vmware/xorg: Give kernel infromation about cursor bypass 2009-12-04 09:54:51 +01:00
Jakob Bornecrantz 12fdef20b0 vmware/xorg: Handle no init of video in vmw_video_close 2009-12-04 09:54:50 +01:00
Jakob Bornecrantz 47e128331a vmware/core: Update vmwgfx_drm.h to include cursor bypass 2009-12-04 09:54:50 +01:00
Roland Scheidegger 9c6a9363ef Merge branch 'gallium-noblocks'
Conflicts:
	src/gallium/state_trackers/xorg/xorg_exa.c
2009-12-04 00:35:14 +01:00
Roland Scheidegger 4153ec547c gallium: fix remaining users of pipe_reference function 2009-12-03 23:58:30 +01:00
Michal Krol cceeab39ea Move pf_get_bits/size() to u_format auxiliary module. 2009-12-03 11:17:37 +01:00
Michal Krol 6df42d8023 Move pf_get_block() to u_format auxiliary module. 2009-12-03 10:52:47 +01:00
Corbin Simpson ab7e70fabd radeong: Clean up some bad code. 2009-12-02 12:58:15 -08:00
Corbin Simpson f79028bbd4 radeong: Add helper to determine pipe driver. 2009-12-02 12:58:15 -08:00
Corbin Simpson 4395d35c8a radeong: Do ioctls before selecting pipe driver. 2009-12-02 12:58:15 -08:00
Corbin Simpson 4f77b0103d r300g, radeong: De-specialize r300_winsys into radeon_winsys.
There's like five good reasons for this, I swear.
2009-12-02 12:58:15 -08:00
Corbin Simpson dad193d516 radeong: Change ioctl order, document it. 2009-12-02 12:58:14 -08:00
Brian Paul 908a3e56cc cell: added tex_usage param to xm_surface_buffer_create() 2009-12-02 09:31:26 -07:00
Jakob Bornecrantz cc8a537c57 Merge branch 'mesa_7_7_branch' 2009-12-02 14:56:56 +01:00
Jakob Bornecrantz 0c75854cc1 Merge commit 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts:
	src/mesa/main/version.h
2009-12-02 14:52:51 +01:00
Jakob Bornecrantz 77ff3a5619 vmware/xorg: Add video support
By using the hooks st/xorg provides us we can create a driver
specific implementation that uses the svga overlay engines.
2009-12-01 17:29:42 +01:00
Jakob Bornecrantz 64102a5625 vmware/xorg: Create a small driver that sits ontop of st/xorg 2009-12-01 17:29:42 +01:00
Jakob Bornecrantz 232e59ca6f vmware/core: Update vmwgfx_drm.h to latest version 2009-12-01 17:29:41 +01:00
Keith Whitwell 06d3732a90 Merge commit 'origin/mesa_7_7_branch'
Conflicts:
	src/gallium/drivers/svga/svga_screen_texture.c
	src/gallium/state_trackers/xorg/xorg_composite.c
	src/gallium/state_trackers/xorg/xorg_exa.c
	src/gallium/state_trackers/xorg/xorg_renderer.c
	src/gallium/state_trackers/xorg/xorg_xv.c
	src/mesa/main/texgetimage.c
	src/mesa/main/version.h
2009-12-01 10:57:37 +00:00
Roland Scheidegger decf6ed810 fixups for interface changes (mostly state trackers) 2009-11-30 23:02:49 +01:00
Keith Whitwell 6781f624af i965g: pass backbuffer tiling information to driver
The gem winsys gets this information, needs to pass it on.
2009-11-30 15:37:27 +00:00
Keith Whitwell 1fd3a2773b ws/i965: more debug output 2009-11-30 15:37:27 +00:00
Keith Whitwell 1dfdc0a615 ws/i965: rename and change sense of I965_SEND_CMD to BRW_NO_HW 2009-11-30 15:37:27 +00:00
Keith Whitwell cddc7e3a9c brw: add dumping to gem winsys 2009-11-30 15:37:27 +00:00
Dave Airlie 6f1bc4267f i965g: link xorg state tracker with -ldrm_intel 2009-11-28 17:44:28 +10:00
Roland Scheidegger c95cbd45c6 Merge branch 'width0'
Conflicts:
	src/gallium/drivers/r300/r300_texture.c
	src/gallium/state_trackers/xorg/xorg_exa.c
	src/mesa/state_tracker/st_cb_texture.c
2009-11-27 17:15:47 +01:00
Vinson Lee 69671df74c svga: Prevent potential null pointer dereference in vmw_surface.c. 2009-11-26 23:03:53 -05:00
Roland Scheidegger d509f84543 gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays 2009-11-26 22:51:45 +01:00
Jakob Bornecrantz 949d95e88a vmware/xorg: Remove gem include 2009-11-25 02:22:35 +01:00
Jakob Bornecrantz 45d9ea3619 vmware/xorg: Link against libkms
If the system doesn't have libkms installed it wont try to link against it.
2009-11-24 19:20:59 +01:00
Jakob Bornecrantz 77529a2cf2 vmware/xorg: Clean Makefile a bit 2009-11-24 19:16:37 +01:00
Jakob Bornecrantz 522e840a91 vmware/xorg: Don't link against libdrm_intel 2009-11-24 18:47:15 +01:00
Jakob Bornecrantz eca5d6944a vmware/xorg: Stage driver in lib/gallium 2009-11-24 18:46:40 +01:00
Brian Paul 0a27c7b963 egl: use util_bitcount() 2009-11-23 18:04:47 -07:00
Jakob Bornecrantz 86710c3334 svga: Scrub Makefiles a bit
Remove x86 specific hacks. Not that they will ever be used on
none x86 arches, but they are built by default. And the way the
flags where added was a hack.
2009-11-23 20:09:00 +01:00
Vinson Lee 57d389aab5 svga: Prevent potential null pointer deference in vmw_surface.c. 2009-11-22 01:26:32 -05:00
Vinson Lee b62a74d3b9 svga: Fix memory leak in vmw_screen_ioctl.c 2009-11-22 01:20:07 -05:00
Jakob Bornecrantz 46492f11f6 svga: More -Werror removal 2009-11-17 12:09:19 +01:00
Jakob Bornecrantz 8c5a108dc3 svga: Remove -Werror for now as GCC 4.4.x raises a bunch of warnings 2009-11-17 11:24:39 +01:00
Jakob Bornecrantz 60769b232c svga: Build svga driver 2009-11-17 03:18:06 +01:00
Jakob Bornecrantz f7109aaf6c svga: Add vmwgfx_drm.h file from vmwgfx kernel driver
Add the vmwgfx_drm.h header for now, this allows the svga driver
to be enabled by default without forcing people to install the
vmwgfx_drm.h header on their system.

To be removed once vmwgfx_drm.h is in libdrm.
2009-11-17 03:18:05 +01:00
Jakob Bornecrantz 3192633d4a svga: Add svga driver 2009-11-17 03:18:04 +01:00
Keith Whitwell c5f9713bd3 i965g: remove droppings in xlib winsys 2009-11-15 12:25:18 -08:00
Michal Krol f5b6e06390 gdi: Link to glslcl. 2009-11-13 05:49:25 +01:00
Chia-I Wu 4b9cc50345 st/egl: Allow APIs other than OpenGL.
This is done by stopping linking to libmesagallium.a and removing DRI
related stuff.  The state tracker an application links to decides the
API supported.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-11-10 11:24:26 -07:00
Chia-I Wu 5f0ea53747 egl_softpipe: Clean up Makefile.
Fix generation of depend.  Link to the dynamic libraries used.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-11-10 11:24:10 -07:00
Jakob Bornecrantz 1f94c06d3f i965g: Fixup buffer creation function
First tri!
2009-11-06 20:45:40 +00:00
Jakob Bornecrantz 0532cc0c86 i965g: trivial/clear can now send stuff to hardware
Added a flag if we should send commands to hardware
as what we send isn't all that correct.
2009-11-06 17:03:01 +00:00
Jakob Bornecrantz 6949d5c777 i965g: Winsys whitespace 2009-11-06 15:55:06 +00:00
Jakob Bornecrantz 68b5a501c5 i965g: Build winsys again 2009-11-06 15:55:06 +00:00
Chia-I Wu 6678f597e7 gallium/xlib: Fix missing symbols when GLX_INDIRECT_RENDERING is defined.
When GLX_INDIRECT_RENDERING is defined, some symbols are used in
libglapi.a but are not defined.  Define them through the help of
glapitemp.h.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-11-05 20:03:57 -07:00
Keith Whitwell c93d9c1ce3 i965g: clean up winsys dumping code a little 2009-11-05 22:51:34 +00:00
Keith Whitwell 4c196ed7a8 i965g: pass relocation information in an array with bo_subdata
Makes it easier to dump as we get all of the information
about the upload in a single hit.

Opens the window to simplification in the driver if these
relocation arrays can be maintained statically rather than
being recreated whenever we check for a new upload.

Still needs some cleanup to avoid uglyness introduced with the
delta values.
2009-11-05 22:43:36 +00:00
Keith Whitwell 3763457892 i965g: propogate map-buffer-range semantics down to winsys 2009-11-05 21:09:51 +00:00
Keith Whitwell 963728665a i965g: make the winsys responsible for all buffer->offset handling
The winsys now inserts the presumed offset into referring buffers from
inside of bo_emit_reloc().  Remove the many locally coded places where
this was happening in the driver and eliminate the worry of getting it
wrong.

No longer need to expose offset values to the driver at all, so no need
to worry about what to do in the driver when they change.  Just use
zero values wherever we had offsets previously -- the relocations will
fix it all up for us.
2009-11-05 20:34:27 +00:00
Keith Whitwell b229ee342f brw: push more dumping into the winsys 2009-11-05 19:57:28 +00:00
Keith Whitwell aa9773d056 i965g: disassemble more than one instruction at a time 2009-11-05 15:34:18 +00:00
Keith Whitwell 61a8ab3359 i965g: call dissassembler for appropriate data uploads 2009-11-05 15:10:22 +00:00
Keith Whitwell c796aed5dd i965g: add lots of error checks and early returns
Any allocation that may fail should be checked, and propogate the
error upwards.  At the highest level we will flush batch and retry.

This is an alternate strategy to what the original DRI driver did of
attempting to flush batch from the lowest levels (eg inside
BEGIN_BATCH).  The trouble with that strategy was that flushes could
occur at unexpected times, and additionally there was a need for a
wierd notification mechanism to propogate the 'lost context' state
back up to higher levels.

Propogating the errors directly gives us a lot of flexibility how to
deal with these states, at the expense of a lot more checking in the
code.

Will add some sanity checks later to make sure that out-of-memory
conditions are properly escalated and not lost halfway up the stack.
2009-11-05 14:01:37 +00:00
Keith Whitwell 09454f68e5 i965g: hook up dumpers in dumping winsys 2009-11-05 12:35:22 +00:00
Keith Whitwell 6ac38232ee i965g: add data type tags to aid dumping/decoding 2009-11-05 10:59:02 +00:00
Jakob Bornecrantz 47cbbb7253 i965g: Builds with scons
But there are some missing symbols, "nm -u i965_dri.so"
[SNIP]
                 U brw_surface_bo
                 U brw_surface_pitch
                 U brw_texture_blanket_winsys_buffer
                 U brw_texture_get_winsys_buffer
                 U brw_update_dirty_counts
[SNIP]
2009-11-05 01:22:10 +00:00
Jakob Bornecrantz 37c6820d0d i965g: Do not create a symlink for i965_dri.so 2009-11-05 01:22:10 +00:00
Jakob Bornecrantz 9bc59a9b6d i915g: Do not create a symlink for i965_dri.so 2009-11-05 01:22:10 +00:00
Keith Whitwell 220566d8dc i965g: consolidate some includes 2009-11-04 23:37:52 +00:00
Keith Whitwell 18efe9a687 ws/i965: allow NULL buffer in winsys::bo_unreference
Special case to avoid clutter in the driver
2009-11-04 23:09:05 +00:00
Keith Whitwell cde48bc8d1 i965g: hook up flush-frontbuffer 2009-11-04 21:12:48 +00:00
Keith Whitwell a09b3d5097 i965g: add missing buffer functions 2009-11-04 15:10:34 +00:00
Keith Whitwell 82a19f0974 ws/i965: add load-time driver registration
Otherwise xlib state-tracker doesn't know about us.
2009-11-04 14:03:25 +00:00
Keith Whitwell b549bbb498 ws/i965: add butt-ugly linker hack
Need more linker magic to keep the glX symbols externally visible even
though they started off in a .a file.
2009-11-04 13:59:59 +00:00
Keith Whitwell 211d7ab22b i965g: add standalone xlib debug winsys
Create a dummy winsys that just debug-prints on calls into the winsys
functions.  Will use this to get to the point where we are generating
sane-looking debug dumps and diassembly.

Also fix various warnings generated with the new compiler flags set in
this config.
2009-11-04 13:03:35 +00:00
Keith Whitwell a277bb20de i965g: convert read/write domain pairs into single usage value
Easier to understand what's going on in the driver sources, convert
stereotype usage values back to GEM read/write domain flags in the
winsys.
2009-11-04 10:09:39 +00:00
Younes Manton 87d7c1aa15 nouveau: Assume all texture blankets are linear for now. 2009-11-01 18:27:47 -05:00
Keith Whitwell 15a8ac2c9d i965g: driver and winsys compile
A milestone of sorts.  Still a long way from something working --
the old one compiled too, at least some of the time...
2009-11-01 19:30:53 +00:00
Cooper Yuan da1fb3be82 r300g: Fix bytes_per_line calculation error while displaying surface 2009-10-29 20:20:59 +08:00
Keith Whitwell 357e5c9a0e ws/i965: renames from i915, hook up makefiles 2009-10-24 11:55:05 +01:00
Keith Whitwell c93d2e4540 ws/i965: pull in the rest of the i915 winsys tree.
The intel_xorg file looks like it's got quite a bit of code that could
be lifted up into the xorg state tracker -- should really just have a
list of pci ids and a pointer to a screen create func.
2009-10-23 23:37:45 +01:00
Keith Whitwell b7efe646b6 ws/i965: clone the i915 winsys
I'll want to rework this, not sure trying to share this code is a very
good idea at least until the interfaces from the two drivers calm
down.
2009-10-23 23:36:02 +01:00
Cooper Yuan 9b6c86b8be r300g: last changes's typo, miss a include file 2009-10-23 16:40:31 +08:00
Cooper Yuan 6df12aad2f r300g: add flush_frontbuffer function to display video surface 2009-10-23 14:46:29 +08:00
Cooper Yuan 0072a26662 g3dvl: pass display and screen to g3dvl when creating video private context 2009-10-23 14:44:27 +08:00
Corbin Simpson 3e56bef5a5 radeon-gallium: Use debug_get_bool_option instead of getenv. 2009-10-16 09:45:07 -07:00
Dave Airlie c1bee7bdea r300g: fixup arb occulsion query support.
1: add rv530 support
   - num z pipes cap
   - add proper start/finish query options for rv530

2: convert to use linked list properly.

3: add flushing required check.

4: initial Z top disabling support.

TODO:
make it actually work on my rv530.
2009-10-14 16:53:12 +10:00
Dave Airlie 210481ae16 r300g: attempt to make bo space check sane.
This attempts to make r300g do proper bo space checking as opposed
to whatever it was doing now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-10-14 15:13:25 +10:00
Zack Rusin 59ae3d5155 configs: fix some remains of the i915simple driver 2009-10-11 20:02:47 -04:00
José Fonseca b858257ca6 gdi: Fix the build when llvmpipe is requested (the default) but llvm is not present. 2009-10-09 11:08:17 +01:00
Jakob Bornecrantz f8ba93aefd i915g: Change order of buffer_write arguments
They now follow the pipe_buffer_write style,
	its the gallium driver that sets the interface not
	the winsys.
2009-10-07 13:48:32 +01:00
Ben Skeggs 4911443d36 nouveau: fix buffer object leak
Very apparent with resizing windows on DRI2.
2009-10-06 13:31:43 +10:00
Jakob Bornecrantz db8b363eb9 i915g: Add more defines to tweek batchbuffer 2009-10-06 03:09:16 +01:00
Brian Paul 722ae91722 i965g: remove 965/brw files from XLIB_WINSYS_SOURCES 2009-10-05 14:43:38 -06:00
Jakob Bornecrantz f00da2a3ff i915g: Drop the simple sufix
None of the other driver have a silly sufix,
	so just drop it. Nothing new added in this commit
	or any other commit but this is better marketing.
2009-10-05 19:48:08 +01:00
Jakob Bornecrantz c4b821a4c6 i965g: Drop i965simple
The driver never work with real hardware and has
bitrotted for quite some time now, might as well
drop it. If somebody wants to look at it just use git.
2009-10-05 19:48:03 +01:00
Ben Skeggs 5313f1be11 nouveau: return pitch value from local_handle_from_texture()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-10-05 15:36:02 +10:00
Nicolai Hähnle 59b20b760d r300g: Fix memory leak in radeon_texture_from_shared_handle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-10-03 18:07:34 +02:00
Sedat Dilek aa6aa77a1b r300g: Build in the trace and softpipe driver for xorg state tracker
Same as in src/gallium/winsys/drm/intel/xorg/Makefile

Thanks MrCooper for explanations on IRC

[ Summary amended by Michel Dänzer to clarify that this is related to the xorg
  state tracker ]
2009-10-03 18:01:58 +02:00
Younes Manton f9f7646fe6 g3dvl: Formatting. 2009-10-01 22:57:39 -04:00
Younes Manton 577f12fbba g3dvl: Delete state_trackers/g3dvl, other unused files. 2009-10-01 22:57:39 -04:00
Younes Manton fcb595c04f g3dvl: Copyright blocks. 2009-10-01 22:53:00 -04:00
Younes Manton 97c28bb63a g3dvl: Move XvMC under the Xorg state tracker. 2009-09-27 21:54:20 -04:00
Younes Manton e44c85637a g3dvl: Implement XvMC using pipe_video_context. 2009-09-27 20:18:02 -04:00
Jakob Bornecrantz 5aecddc153 i915g: Make sure to map tiled buffers via the gtt 2009-09-27 13:19:49 -07:00
Jakob Bornecrantz c3663bdc35 i915g: Enable reuse of buffers 2009-09-27 13:19:48 -07:00
José Fonseca 86962d6f6e gdi: Update for WGL state tracker interface changes. 2009-09-24 13:12:51 +01:00
Keith Whitwell 890679d432 Merge branch 'softpipe-opt'
Conflicts:
	progs/demos/cubemap.c
	src/gallium/drivers/softpipe/sp_tex_sample.c
	src/gallium/drivers/softpipe/sp_texture.c
2009-09-23 17:37:28 +01:00
José Fonseca f8c11526c0 gdi: Update for WGL statetracker source reorg. 2009-09-23 10:32:51 +01:00
Jakob Bornecrantz 19798e17fe i915g: Activate trace 2009-09-22 11:06:57 -07:00
Ben Skeggs 774db70506 nouveau: allow building modesetting_drv.so 2009-09-21 14:51:39 +10:00
Ben Skeggs 344e2fd1f2 nouveau: drm_api create_screen()'s 'arg' argument can be NULL 2009-09-21 14:46:50 +10:00
Michal Krol 2a661c383f Merge commit 'origin/master' into glsl-pp-rework-2
Conflicts:
	src/gallium/winsys/gdi/SConscript
2009-09-17 12:44:24 +02:00
José Fonseca b60e1d7630 gdi: Integrate with llvmpipe where available. 2009-09-16 11:35:23 +01:00
Brian Paul 41bbc83951 Merge branch 'mesa_7_6_branch' 2009-09-15 09:47:35 -06:00
Cooper Yuan 287f0072d2 st/g3dvl: pass color values to softpipe clear function 2009-09-15 15:25:47 +08:00
Michal Krol 9f273f1098 Merge commit 'origin/master' into glsl-pp-rework-2 2009-09-14 11:22:05 +02:00
Brian Paul d81086a86b llvmpipe: asst fixes for 'make linux-llvmpipe' 2009-09-11 13:39:14 -06:00
Jakob Bornecrantz e589a37f7b i915g: Add buffer write callback 2009-09-09 00:43:36 +01:00
Jakob Bornecrantz 547b726484 i915g: pwrite batchbuffer instead of map 2009-09-09 00:43:36 +01:00
Jakob Bornecrantz 3833587818 i915g: Map vertex buffers via gtt 2009-09-09 00:43:35 +01:00
Jakob Bornecrantz 530fbd314e i915g: Remove lib prefix from driver 2009-09-09 00:43:35 +01:00
Michal Krol 0aeff7638b gdi: Fix prototype of gdi_softpipe_surface_buffer_create(). 2009-09-08 10:23:05 +02:00
Michal Krol fcb94f6e3e gdi: Fix prototype of gdi_softpipe_surface_buffer_create(). 2009-09-08 10:22:07 +02:00
Michal Krol d26d77295b gdi: Add glsl to LIBS. 2009-09-07 21:23:43 +02:00
Michel Dänzer 617202b578 r300g: Fix some issues pointed out by compiler warnings. 2009-09-06 18:12:14 +02:00
Michel Dänzer 7b8ec0d8e7 r300g: Handle PIPE_BUFFER_USAGE_DONTBLOCK as intended.
Return NULL if the BO is busy, otherwise just map it.
2009-09-06 18:12:14 +02:00
Brian Paul 9e711b6865 gallium/xlib: silence uninitialized var warning 2009-09-03 16:07:46 -06:00
Jakob Bornecrantz 3070b13f4c i915g: Up the number of relocs 2009-09-03 19:33:07 +01:00
Jakob Bornecrantz 8303c722cb i915g: Don't run in sync with HW 2009-09-03 19:33:07 +01:00
Michel Dänzer c0cf0fd163 st/xorg: Remove code no longer support by xserver Git master.
Shouldn't be necessary with older versions either.
2009-09-02 16:01:21 +02:00
José Fonseca 836a9f0ae6 scons: Tool for LLVM. Gracefully disable llvmpipe if LLVM not found. 2009-09-01 12:26:00 +01:00
Jakob Bornecrantz 935e4c56e5 i915g: Implement new winsys 2009-09-01 00:47:02 +01:00
Ben Skeggs 1ea114958b nouveau: fix for dri state tracker changes 2009-08-31 13:39:45 +10:00
Ben Skeggs 500b260494 nouveau: hack winsys to compile again, it's broken still however 2009-08-31 12:55:56 +10:00
José Fonseca d336ef410a xlib: Implement lp_winsys::destroy. 2009-08-30 12:37:03 +01:00
José Fonseca 85a0a4b296 xlib: Implement llvmpipe lp_winsys interface. 2009-08-29 20:03:44 +01:00
José Fonseca da1248bee5 xlib: Update llvmpipe integration for changes in master. 2009-08-29 09:21:42 +01:00
Brian Paul aa2514d12d llvmpipe: add missing break in xlib _init() 2009-08-29 09:21:34 +01:00
José Fonseca 556eecea67 llvmpipe: Allow to build without udis86. 2009-08-29 09:21:34 +01:00
José Fonseca 818d444e12 llvmpipe: Disassemble generated x86 code. 2009-08-29 09:21:32 +01:00
José Fonseca b836b2593c xlib: Complete llvmpipe integration. 2009-08-29 09:21:27 +01:00
José Fonseca c4903ee27f xlib: Integrate with llvmpipe.
Actually, the makefile/sconscript changes were already commit by mistake.
2009-08-29 09:21:21 +01:00
Jakob Bornecrantz 644060c025 i915g: Don't forget to init buffer ptrs 2009-08-28 22:41:52 +01:00
Joakim Sindholt dbe58d7f9f r300g: pretty up the new drm code a bit
As it turns out, I made some boners. This corrects them (I hope)
2009-08-28 20:05:52 +02:00
Joakim Sindholt 6bfec14d6d r300g: support new drm_api 2009-08-28 17:23:11 +02:00
Jakob Bornecrantz 1e5014f7df drm_api: Operate on textures instead of buffers
Most use cases just got the buffer from the texture
	and then called into one of the get_handle functions.

	Also with this patch it would be easier to move to a
	generic function for getting handles from textures
	and textures from handles, that is exposed via the screen.
2009-08-28 13:38:23 +01:00
Jakob Bornecrantz 6f0a1a8426 st/xorg: Pass dri driver name as driverName on screen 2009-08-28 12:36:42 +02:00
Chia-I Wu c06699dd12 egl_softpipe: Make winsys and pipe screen per display.
This is to allow a driver to drive multiple displays.  Remove the use of
_EGL_PLATFORM_X along the way.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Brian Paul 69170a4aae xlib: fix single buffer window resize bug
When a single-buffered window was resized the new window size was never
detected.  This fix that, but there's still a bug which causes window
contents corruption for certain window sizes...
2009-08-24 13:05:20 -06:00
Jakob Bornecrantz a469b4c459 i915g: Remove bad assert on fence 2009-08-22 02:09:59 +01:00
Chia-I Wu 1f871a4d15 egl_softpipe: Do not flush unlinked context.
An unlinked context is destroyed after _eglMakeCurrent.  Flushing such
context would cause segfault.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-21 08:34:34 -06:00
Corbin Simpson c0bc070ff5 radeon-gallium: Oh, look, we *do* already support DONTBLOCK.
Well, okay, the kernel doesn't, but that's no excuse for us! :3
2009-08-18 21:25:53 -07:00
Corbin Simpson 14378cbd2d radeon-gallium: Stop using outdated ioctls. 2009-08-18 21:25:53 -07:00
Corbin Simpson c63bd15f81 Revert "r300-gallium, radeon-gallium: Nuke gb_pipes from orbit."
This reverts commit 6a40d1e9d9.

Turns out that we *do* need these for OQ after all. Go figure.

Conflicts:

	src/gallium/winsys/drm/radeon/core/radeon_r300.h
2009-08-18 21:25:53 -07:00
Brian Paul e4aa62a6ce egl/xlib: move call to create_configs() after we set the Xdpy field 2009-08-18 17:54:44 -06:00
Chia-I Wu 5a2c9372a0 egl: Some per-driver data should be per-display.
Move some fields of _EGLDriver to _EGLDisplay.  It also becomes
unnecessary to pass _EGLDisplay to drivers when _eglMain is called.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-18 08:49:09 -06:00
Chia-I Wu 2f2cf461c5 egl: Overhaul driver API.
The motivation is so that drivers do not need to look up and check for
bad display, context, and etc.  It also becomes unnecessary for drivers
to call the link functions.

This commit makes eglapi.[ch] do the lookup and check.  As a result, the
driver API is overhauled, and almost all sources and drivers need
update.  The updates are mainly find and replace with human brains.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-18 08:44:34 -06:00
Michel Dänzer 7c08614b32 gallium/drm: Handle circular dependencies in the auxiliary libraries with make. 2009-08-13 18:46:53 +02:00
Brian Paul b681f396e6 gallium/xlib: add missing tex_usage parameter 2009-08-11 20:34:21 -06:00
Brian Paul 6deaa6d4b1 gallium/egl: add missing tex_usage parameter 2009-08-11 20:34:21 -06:00
Brian Paul 2e8be3ab79 gallium/xlib: add missing tex_usage parameter 2009-08-11 20:34:21 -06:00
Jakob Bornecrantz 164d8e8701 i915g: Reduce max relocs 2009-08-12 03:58:38 +02:00
Jakob Bornecrantz 7a60ed2015 i915g: Implement surface_buffer_create for softpipe
In order to run softpipe on st/xorg we need this function
2009-08-11 18:37:09 +01:00
Jakob Bornecrantz 738e02c3c8 i915g: Don't try to free a mapped buffer at shutdown 2009-08-08 03:19:01 +02:00
Jakob Bornecrantz 8662f2c542 i915g: Compile with scons 2009-08-06 13:50:46 +01:00
Jakob Bornecrantz b6c9401f13 i915g: Always run in sync with the HW 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz 901b87547e i915g: The i915 seems more happier with sampler domain so lets use that 2009-08-06 00:52:13 +01:00
Jakob Bornecrantz 66b00380a2 i915g: Switch to mapping the batch buffer instead of using subdata 2009-08-06 00:52:13 +01:00
Chia-I Wu 6f97a41964 egl_softpipe: Add support for pbuffer binding.
This adds support for eglBindTexImage and eglReleaseTexImage.  They rely
on the state tracker to do the real work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-05 16:08:07 -06:00
Chia-I Wu 0153614cb0 egl_softpipe: Flush when switching current context.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-05 16:07:39 -06:00
Jakob Bornecrantz 0500404cdf i915g: Treat primary textures as scanout buffers 2009-08-05 19:29:30 +01:00
Jakob Bornecrantz ec269c198a i915g: Link with trace on EGL and Xorg 2009-08-05 19:29:30 +01:00
Chia-I Wu 7420e33848 egl_softpipe: Add support for pbuffer surface.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-03 11:36:08 -06:00
Chia-I Wu 07ee01365a egl: Replace IsBound by a pointer to the binding.
IsBound tells if a context or surface is current.  What it does not tell
is, to which thread a context is current, or to which context a surface
is current.  This commit replaces IsBound by a pointer to the binding
thread or context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-03 11:34:37 -06:00
Corbin Simpson 725c1f004c radeon-gallium: If BO allocation fails, return NULL. 2009-07-26 22:35:26 -07:00
Joakim Sindholt 12b183d250 radeon-gallium: remove old getparam ioctl 2009-07-24 14:54:00 +02:00
Corbin Simpson ca83d5a8db r300g, radeon-gallium: Fix API, cleanup.
Something called "validate" should return FALSE on failure, not TRUE.
2009-07-23 07:18:29 -07:00
Nicolai Hähnle 27b3c435ba radeon-gallium: Build fixes wrt changed libdrm_radeon space check API
Had to be hacked up a bit to apply to master. Sorry 'bout that. :3
2009-07-23 07:18:29 -07:00
Keith Whitwell 07bb026900 gallium/xlib: use XSHM for swapbuffers
Makes some difference, but suprisingly little.  Barely worth the effort.
2009-07-22 12:47:59 +01:00
Michel Dänzer 3d0009ce45 r300g: Fix SCons build. 2009-07-20 02:06:37 +02:00
Ian Romanick 11522b74b3 Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts:
	src/gallium/drivers/softpipe/sp_quad_blend.c
2009-12-15 12:38:01 -08:00
Jakob Bornecrantz f4de0b176d vmwgfx: Update vmwgfx_drm.h to the on upstream 2009-12-14 22:27:08 +01:00
Jakob Bornecrantz fb06d8f097 vmware/xorg: Use new stream ioctl 2009-12-14 22:12:20 +01:00
Jakob Bornecrantz 49e4b624e5 vmwgfx/core: Check for 3D via the get param ioctl 2009-12-12 18:37:16 +01:00
Chia-I Wu 15fdbc8361 egl: Remove redundant DeletePending flag.
A context or surface that is neither linked to a display nor current to
a thread should be destroyed.  Therefore, an unlinked context or surface
implies a pending delete automatically.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-17 11:56:00 -06:00
Chia-I Wu cca31340b5 egl: Use the link functions to manage resources.
This commit uses the newly introduced link functions to manage EGL
contexts and surfaces.  As a result of this, the API for drivers are
changed.  All drivers are updated for the change.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-17 11:53:03 -06:00
Nicolai Hähnle b3f1d370a2 r300g, radeon: Whitespace fixes.
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-07-13 16:26:29 -07:00
Corbin Simpson 645bfa32c9 radeon-gallium: Compile warning fix.
Fixes flush during validation, in case a buffer is double-validated.
2009-07-05 11:56:40 -07:00
Corbin Simpson c8e0d55ac6 radeon-gallium: Use FLINK to do proper global buffers. 2009-07-05 11:55:47 -07:00
Corbin Simpson df04e72d25 radeon-gallium: Wait for BOs before mapping them. 2009-07-05 11:29:13 -07:00
Jakob Bornecrantz d1c8a0a308 r300g: Readd trace driver support 2009-07-02 15:07:53 +02:00
Jakob Bornecrantz 59abfa8e42 i915g: Readd trace driver support 2009-07-02 15:05:17 +02:00
Corbin Simpson 338db0af61 radeon-gallium: Adapt to drm_api changes.
Note that trace debugging is temporarily gone. I'll rework it later.
2009-07-01 22:33:17 -07:00
Ben Skeggs 55fc63cd7d nouveau: fix build... 2009-07-01 09:26:56 +10:00
Jakob Bornecrantz 64849d1236 drm/st: Remove drm_api struct from drivers
Remove the drm_api from the functions in the softpipe and
	i915simple drivers. Create wrapper functions in the
	backends instead.
2009-07-01 01:20:04 +02:00
Jakob Bornecrantz f7cbaae13d identity: Create a drm_api wrapper 2009-06-30 12:24:47 +02:00
Jakob Bornecrantz 303cbb45b5 drm/st: Return drm_api struct from a function 2009-06-30 12:20:39 +02:00
Jakob Bornecrantz 7a879500ac gallium-intel: Improve Xorg Makefile a bit
The real solution is to create a Makefile.template for xorg
	drivers and use that here.
2009-06-22 23:45:02 +02:00
Michal Krol 03760a3903 winsys/gdi: Link to ws2_32 library. 2009-06-10 12:01:13 +02:00
Ben Skeggs 6b3ca672eb nouveau: remove unneeded code from ws, use pipe_buffer_ instead of ws-> 2009-06-05 14:37:03 +10:00
Ben Skeggs 80e9e1ee81 nouveau: move channel creation into pipe drivers 2009-06-05 14:37:03 +10:00
Ben Skeggs 1b207d9bb8 nouveau: call notifier/grobj etc funcs directly
libdrm_nouveau is linked with the winsys, there's no good reason to do all
this through yet another layer.
2009-06-05 14:37:03 +10:00
Ben Skeggs bc466be695 nouveau: add pipe_buffer/fence code to pipe drivers, move nv50 over 2009-06-05 14:37:01 +10:00
Ben Skeggs 04cef8a037 nouveau: call nouveau_pushbuf directly rather than going through nvws 2009-06-05 14:37:00 +10:00
Dan Nicholson bc302b2a33 Use separate $(MINSTALL) for installing libraries
The special feature of bin/minstall to copy symlinks is only ever needed
when installing libraries which may have .so symlinks. All the headers
and directories can use a normal install program.

These two modes are separated as $(INSTALL) and $(MINSTALL) to allow the
user (or autoconf) to override installing normal files as they please.
An autoconf check for the install program has been added and will be
used in preference to minstall when available.

Fixes bug 16053.
2009-06-01 06:32:52 -07:00
Corbin Simpson b70fcd620d r300-gallium, radeon-gallium: Make add_buffer indicate when a flush is needed.
On a side note, why is RADEON_MAX_BOS 24? Should ask airlied about that.
2009-05-28 07:46:34 -07:00
Ben Skeggs 65e3fb7b46 nouveau: explicitly request mappable buffers for the moment 2009-05-28 16:06:16 +10:00
Corbin Simpson 0ba7f76233 radeon-gallium: Add surface_buffer_create callback. 2009-05-20 13:21:17 -07:00
Corbin Simpson 4550423211 radeon-gallium: Don't permit reading and writing a BO in one CS.
This fixes some silent problems in current libdrm_radeon.

surface_copy still locks up hard.
2009-05-20 07:18:08 -07:00
Corbin Simpson 026f4c97dc radeon-gallium: Remove BO validation debug.
It appears that that area of code "just works" much like classic Mesa's
version, so might as well not waste scrollback on it.
2009-05-18 09:51:10 -07:00
Corbin Simpson 6a40d1e9d9 r300-gallium, radeon-gallium: Nuke gb_pipes from orbit.
See the previous commit for an explanation. This is just all the support code
for GB_TILE_CONFIG.
2009-05-17 17:03:15 -07:00
Corbin Simpson 0e8c6e56e4 intel-gallium: Fix trace_drm integration.
Compile-tested only, sorry.
2009-05-16 10:07:58 -07:00
Corbin Simpson 5e39a8c450 Create common trace_drm code, add to radeon_winsys. 2009-05-16 10:07:58 -07:00
Jakob Bornecrantz 3259f52a92 gallium-intel: Enable trace driver 2009-05-16 01:51:30 +01:00
Jakob Bornecrantz 97ccdee68a gallium-intel: Build with scons 2009-05-15 22:54:07 +01:00
Brian Paul e7cb125b2d Merge branch 'mesa_7_5_branch'
Conflicts:

	Makefile
	src/mesa/main/version.h
2009-05-11 16:27:50 -06:00
Corbin Simpson f38a02212f radeon-gallium: Forgot a typedef. 2009-05-11 09:55:28 -07:00
Corbin Simpson 2e22bd8460 radeon-gallium: Support new info ioctls in addition to classic getparams.
This makes non-hybrid kernels like newttm from drm-next-radeon work
while avoiding breakage with Fedora/Ubuntu/etc.
2009-05-11 09:05:33 -07:00
Hanno Böck c8c0953294 gallium: replace lib with $(LIB_DIR) 2009-05-09 16:17:37 -06:00
Corbin Simpson 53c2cc8fef radeon-gallium: Clean up some of the BO counting logic. 2009-05-09 00:45:48 -07:00
Corbin Simpson 1b26c2bbae r300-gallium, radeon: BO handling fixes, some useful asserts. 2009-05-08 19:41:08 -07:00
Corbin Simpson bed917641c radeon-gallium: Shut up Valgrind. 2009-05-08 19:41:08 -07:00
Corbin Simpson cd59933d9f r300-gallium, radeon: A couple cleanups.
Trying to track down goddamn bugs. :C
2009-05-08 19:41:08 -07:00
Ben Skeggs 71b1c92405 nouveau: respect GALLIUM_STATE_TRACKERS_DIRS 2009-05-08 09:33:02 +10:00
Ben Skeggs 9e02fa4532 nouveau: remove dri1 code now we're using the dri state tracker 2009-05-08 09:33:02 +10:00
Ben Skeggs b7f2b7e936 nouveau: use dri state tracker for dri1 2009-05-08 09:32:56 +10:00
José Fonseca 293f576db7 egl_xlib: Pass RTLD_LAZY to dlopen.
dlopen manpage mandates that either RTLD_LAZY or RTLD_NOW flags must be
passed. Not doing so was causing a NULL return on debian unstable x86-64.
2009-05-01 12:51:01 -04:00
Corbin Simpson 2953b18004 radeon: Don't even bother with things too big to fit into our card. 2009-05-01 07:29:14 -07:00
Corbin Simpson 5b15cc312f r300-gallium, radeon-winsys: Hide radeon_cs from r300 pipe. 2009-05-01 06:01:52 -07:00
Corbin Simpson c11ad489e7 r300-gallium, radeon-winsys: Space accounting.
It is no longer optional in current libdrm, so it was time to actually
start counting our BOs.
2009-05-01 05:54:53 -07:00
Corbin Simpson d7f4ac9f34 r300-gallium, radeon-winsys: Reorganize r300_winsys header, break ABI.
Make things more consistent, prepare for more function hooks.
2009-05-01 05:03:56 -07:00
Corbin Simpson 1f43cc1d84 radeon: Fix cast and comment. 2009-05-01 04:39:04 -07:00
Tormod Volden 9cb3cdec76 mesa: Prepend "-Wl," to linking options
Let mklib ignore -Wl options inside the object list when building
static libraries
2009-04-30 16:52:56 -06:00
Jakob Bornecrantz aef3bccbda gallium-intel: Create a i965_dri.so symlink
This is only used for debuging the gem backend on i965
	chipset using the softpipe pipe driver.

	Usage: "export INTEL_SOFTPIPE=y" and point LIBGL_DRIVERS_PATH
	to "$MESA/lib/gallium" where $MESA is the mesa root.
2009-04-28 13:00:34 +01:00
Jakob Bornecrantz c9b336bc93 gallium-intel: Fix build of dri driver 2009-04-28 01:17:44 +02:00
Corbin Simpson 81ded8092a radeon-r300: Fix a bit of breakage.
Not really sure why reordering the ioctls makes them work again.
2009-04-28 03:28:57 -07:00
Corbin Simpson 1ae877d95a radeon: Use PCI_MATCH_ANY for xorg driver.
Might as well.
2009-04-28 03:28:37 -07:00
Thomas Hellstrom 05af5a7f59 gallium: Rename the dri state tracker lib to libdridrm.a 2009-04-28 11:58:27 +02:00