summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/i915/drm
AgeCommit message (Collapse)AuthorFilesLines
2014-08-28winsys/$(hw): include headers in Makefile.sourcesEmil Velikov1-1/+3
Otherwise 'make dist' will not pick them up :'( Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-08-15gallium/i915: handle query_renderer capsEmil Velikov1-0/+12
Implementation based on the classic driver with the following changes: - Use auxiliarry function os_get_total_physical_memory to get the total amount of memory. - Move the libdrm_intel specific get_aperture_size to the winsys. Cc: Stephane Marchesin <stephane.marchesin@gmail.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-08-13android: gallium: use the installed libdrm headersEmil Velikov1-4/+1
Saves us a few lines and brings us closer to the automake build. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-06-09scons: remove dri-i915 build targetEmil Velikov1-14/+0
Unmaintained and broken. Cc: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Jakob Bornecrantz <jakob@vmware.com>
2013-12-10gallium/winsys/drm: Prepare for passing prime fds in winsys_handleChristopher James Halse Rogers1-1/+5
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-11-16gallium/winsys: compact compiler flags into Automake.incEmil Velikov1-2/+1
Cleanup the duplicating flags and consolidate into a sigle variable. Note: this patch adds VISIBILITY_CFLAGS to the following targets * freedreno/drm * i915/{drm,sw} * nouveau/drm * sw/fbdev * sw/null * sw/wayland * sw/wrapper * sw/xlib Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2013-05-08i915g: Optimize batchbuffer sizesStéphane Marchesin1-1/+1
Now that we don't throttle at every batchbuffer, we can shrink the size of batchbuffers to achieve early flushing. This gives a significant speed boost in a lot of games (on the order of 20%).
2013-03-08i915g: Use PIPE_FLUSH_END_OF_FRAME to trigger throttlingStéphane Marchesin1-3/+5
This helps with jittering, instead of throttling at every command buffer we only throttle once a frame.
2013-01-13Remove hacks for static MakefilesMatt Turner1-4/+0
v2: Andreas Boll <andreas.boll.dev@gmail.com> - don't remove compatibility with scripts for the old build system v3: Andreas Boll <andreas.boll.dev@gmail.com> - remove more obsolete hacks v4: Andreas Boll <andreas.boll.dev@gmail.com> - add a previously removed TOP variable to fix vgapi build
2013-01-10Clean up .gitignore filesMatt Turner1-1/+0
2013-01-10i915/winsys/drm: Convert to automakeMatt Turner3-13/+39
2011-10-04configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.Stéphane Marchesin1-2/+2
Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-08-27android: add support for i915gChia-I Wu1-0/+41
Quickly tested with 945GME. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work and some do not.
2011-08-27winsys/i915: share the source listChia-I Wu3-11/+8
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-07-13i915g: don't try to check if a NULL buffer is busy.Stéphane Marchesin1-0/+2
2011-07-06i915g: Improve flushing using heuristics.Stéphane Marchesin1-0/+10
2011-06-30scons: Expose pkg-config in a simpler manner.José Fonseca1-1/+1
2011-06-11i915g: implement fence signallingDaniel Vetter1-2/+6
v2: Incorporated feedback from Jakob Bornecrantz. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-05-03i915g: add const qualifier to silence warningBrian Paul1-1/+1
2011-03-28i915g: Fix build.Vinson Lee1-3/+6
Fix build failures introduced with commit 0fbb64a52931ba5871aa2c5eb01b81d391f678d1. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
2011-03-28i915g: use drm ioctl to get pci devidDaniel Vetter1-18/+8
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01i915g: kill relocs accoutingDaniel Vetter1-3/+0
No one ever cared. libdrm does dynamic resizing of its reloc-table, anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-27i915g/winsys: buffer validation supportDaniel Vetter1-0/+21
v2: Add the batch bo to the libdrm validation lost, for otherwise libdrm won't take previously used buffers into account. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-27i915g: add raw batchbuffer dumping in drm winsysDaniel Vetter3-0/+11
These files can be decoded with intel_dump_decode from the intel-gpu-tools available at: http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: add some throttlingDaniel Vetter1-0/+9
Intel classic drivers switched to this, too, so it must be good. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: s/bool/boolean/ style-fixup in winsysDaniel Vetter1-1/+1
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: Fix warningJakob Bornecrantz1-1/+0
2011-02-21i915g: kill remnants of mmapped batchbuffer supportDaniel Vetter1-12/+0
We're using bo_subdata. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2010-12-02i915g: Fix closure of full batch buffersChris Wilson1-59/+12
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> [danvet: incorporate comments by Dr_Jakob] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-12-02i915g: return tiling in iws->buffer_from_handleDaniel Vetter1-2/+4
This is needed to properly implement tiling flags. And the gem implemention fo buffer_from_handle already calls get_tiling, so it's for free. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-12-02i915g: prepare winsys/batchbuffer for execbuf2Daniel Vetter2-16/+24
Wire up a fenced parameter, switch all relocations to _FENCED Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-12-02i915g: switch to tiled allocations, kill set_fenceDaniel Vetter1-19/+0
This way relaxed fencing is handled by libdrm. And buffers _can't_ ever change their tiling. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-12-02i915g: add winsys function to create tiled buffersDaniel Vetter1-12/+56
Different kernels have different restrictions for tiled buffers. Hence use the libdrm abstraction to calculate the necessary stride and height alignment requirements. Not yet used. v2: Incorporate review comments from Jakob Bornecrantz Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-12-02i915g: drop alignment parameter from iws->buffer_createDaniel Vetter1-2/+2
It's unnecessary. The kernel gem ignores it totally and we can't run on the old userspace fake bo manager due to lack of dri2. Also drop the redundant name string from the sw winsys as suggested by Jakob Bornecrantz Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21i915g: kill idws->poolDaniel Vetter4-14/+7
The drm winsys only ever handles one gem memory manager. Rip out the unnecessary complication. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21i915g: kill buf->map_gttDaniel Vetter2-15/+2
Not using the gtt is considered harmful for performance. And for partial uploads there's always drm_intel_bo_subdata. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-07-22i915g: Rename winsys debug optionsJakob Bornecrantz1-2/+2
2010-07-04i915g: Add flag to not send commands to hwJakob Bornecrantz3-1/+6
2010-07-04i915g: If the kernel reject the batchbuffer print it then assertJakob Bornecrantz1-13/+18
2010-06-06i915g: Move bootstrap code to targetsJakob Bornecrantz4-24/+15
2010-06-04i915g: Rename winsys c file.Vinson Lee1-1/+1
This was missed in commit e7f0f6bb72c63fd6e6ddcb7a815be68682f1764c. Fixes i915g SCons build.
2010-05-29i915g: Rename winsys c fileJakob Bornecrantz2-1/+1
2010-05-29i915g: Move pci id to winsys structJakob Bornecrantz2-4/+2
2010-05-25drm_api: Remove type argument from create screen callbackJakob Bornecrantz1-11/+1
With the removal of DRI1 support there where no use of this argument, some drivers didn't even properly check it.
2010-04-20gallium: Fix copy typoJakob Bornecrantz1-1/+1
2010-04-20i915g: Minor clean up of winsysJakob Bornecrantz1-9/+3
2010-04-13i915g: Fix winsys SCons build.Vinson Lee1-0/+2
2010-03-26i915g: Rename winsys prefix to i915_ from intel_Jakob Bornecrantz8-208/+208
Since the winsys isn't shared with i965 and never will be
2010-03-24gallium: Make scons build dri/xorg drivers againJakob Bornecrantz1-1/+1
2010-03-24gallium: Reorg winsys directoriesJakob Bornecrantz7-0/+763
Attached output from commit. delete mode 100644 src/gallium/winsys/drm/SConscript delete mode 100644 src/gallium/winsys/drm/i965/SConscript delete mode 100644 src/gallium/winsys/drm/intel/Makefile delete mode 100644 src/gallium/winsys/drm/intel/SConscript delete mode 100644 src/gallium/winsys/drm/nouveau/Makefile delete mode 100644 src/gallium/winsys/drm/radeon/Makefile delete mode 100644 src/gallium/winsys/drm/radeon/SConscript delete mode 100644 src/gallium/winsys/drm/vmware/Makefile delete mode 100644 src/gallium/winsys/drm/vmware/SConscript rename src/gallium/winsys/{drm/intel/gem => i915/drm}/Makefile (82%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/SConscript (100%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_api.c (100%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_batchbuffer.c (100%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_buffer.c (100%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_fence.c (100%) rename src/gallium/winsys/{drm/intel/gem => i915/drm}/intel_drm_winsys.h (100%) rename src/gallium/winsys/{drm/i965/gem => i965/drm}/Makefile (78%) rename src/gallium/winsys/{drm/i965/gem => i965/drm}/SConscript (100%) rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_api.c (98%) rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_buffer.c (100%) rename src/gallium/winsys/{drm/i965/gem => i965/drm}/i965_drm_winsys.h (100%) rename src/gallium/winsys/{drm => }/i965/xlib/Makefile (97%) rename src/gallium/winsys/{drm => }/i965/xlib/xlib_i965.c (100%) rename src/gallium/winsys/{drm => }/nouveau/drm/Makefile (79%) rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_dri.h (100%) rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_drm_api.c (100%) rename src/gallium/winsys/{drm => }/nouveau/drm/nouveau_drm_api.h (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/Makefile (79%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/SConscript (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_buffer.h (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm.c (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm.h (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_drm_buffer.c (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_r300.c (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_r300.h (100%) rename src/gallium/winsys/{drm/radeon/core => radeon/drm}/radeon_winsys.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/Makefile (63%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/SConscript (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_buffer.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_buffer.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_context.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_context.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_fence.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_fence.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_dri.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_ioctl.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_pools.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_screen_svga.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_surface.c (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmw_surface.h (100%) rename src/gallium/winsys/{drm/vmware/core => svga/drm}/vmwgfx_drm.h (100%) rename src/gallium/winsys/{drm/i965 => sw}/Makefile (61%) copy src/gallium/winsys/{drm/sw => sw/drm}/Makefile (73%) rename src/gallium/winsys/{drm/sw => sw/drm}/sw_drm_api.c (98%) rename src/gallium/winsys/{drm/sw => sw/drm}/sw_drm_api.h (100%) rename src/gallium/winsys/{ => sw}/gdi/SConscript (100%) rename src/gallium/winsys/{ => sw}/gdi/gdi_sw_winsys.c (100%) rename src/gallium/winsys/{ => sw}/gdi/gdi_sw_winsys.h (100%) rename src/gallium/winsys/{ => sw}/null/Makefile (78%) rename src/gallium/winsys/{ => sw}/null/SConscript (100%) rename src/gallium/winsys/{ => sw}/null/null_sw_winsys.c (100%) rename src/gallium/winsys/{ => sw}/null/null_sw_winsys.h (100%) rename src/gallium/winsys/{drm/sw => sw/wrapper}/Makefile (65%) rename src/gallium/winsys/{drm/sw => sw/wrapper}/wrapper_sw_winsys.c (100%) rename src/gallium/winsys/{drm/sw => sw/wrapper}/wrapper_sw_winsys.h (100%) rename src/gallium/winsys/{ => sw}/xlib/Makefile (79%) rename src/gallium/winsys/{ => sw}/xlib/SConscript (100%) rename src/gallium/winsys/{ => sw}/xlib/xlib_sw_winsys.c (100%)