aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_context.h
Commit message (Collapse)AuthorAgeFilesLines
* drm-uapi: use local files, not system libdrmEric Engestrom2019-02-141-1/+1
| | | | | | | | | There was an issue recently caused by the system header being included by mistake, so let's just get rid of this include path and always explicitly #include "drm-uapi/FOO.h" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* dri: Change __DriverApiRec::CreateContext to take a struct for attribsNeil Roberts2017-11-061-5/+2
| | | | | | | | | | | | | | | | | | | | Previously the CreateContext method of __DriverApiRec took a set of arguments to describe the attribute values from the window system API's CreateContextAttribs function. As more attributes get added this could quickly get unworkable and every new attribute needs a modification for every driver. To fix that, pass the attribute values in a struct instead. The struct has a bitmask to specify which members are used. The first three members (two for the GL version and one for the flags) are always set. If the bit is not set in the attribute mask then it can be assumed the attribute has the default value. Drivers will error if unknown bits in the mask are set. Reviewed-by: Adam Jackson <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Neil Roberts <[email protected]>
* egl,dri: Propagate context priority hint to driver->CreateContextChris Wilson2017-10-201-0/+1
| | | | | | | | | | | | | | | | | | | | Jump through the layers of abstraction between egl and dri in order to feed the context priority attribute through to the backend. This requires us to read the value from the base _egl_context, convert it to a DRI attribute, parse it again in the generic context creator before passing it to the driver as a function parameter. In order to not require us to pass back the actual value of the context priority after creation, we impose that drivers should report the available set of priorities during screen setup (and then they may chose to fail if given an invalid value as that should have been checked at the user boundary.) Signed-off-by: Chris Wilson <[email protected]> Acked-by: Ben Widawsky <[email protected]> # i915/i965 Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* mesa/dri: drop unneeded mm.h includeDave Airlie2017-08-031-1/+0
| | | | | | | | This isn't used in any of these drivers. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* mesa/i965/i915/r200: eliminate gl_vertex_programTimothy Arceri2016-10-261-1/+1
| | | | | | | Here we move the only field in gl_vertex_program to the ARB program fields in gl_program. Reviewed-by: Jason Ekstrand <[email protected]>
* radeon/r200: remove unneeded #include of colormac.hMark Janes2015-10-061-1/+0
| | | | Reviewed-by: Matt Turner <[email protected]>
* radeon,r200: remove unused variable texmicrotileEmil Velikov2015-07-221-1/+0
| | | | | | | | | | Dead since at least 2009 with commit ccf7814a315(radeon: major cleanups removing old dead codepaths.) Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
* r200: fix some potential big endian issuesRoland Scheidegger2015-07-161-4/+0
| | | | | | | | | | | | The formats chosen (both by texture format choser, fbo storage allocation) are different for big endian not just for rgba8 but also lower bit width formats (why I don't actually know). Even the function to test for renderable formats used different formats, however the actual colorbuffer setup did not. And the blitter did not take that into account neither. Untested (what could possibly go wrong...). Same as for r100. Acked-by: Marek Olšák <[email protected]>
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/[email protected]/[email protected]/ s/[email protected]/[email protected]/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\[email protected]/[email protected]/g s/keithw\[email protected]/[email protected]/g s/[email protected]/[email protected]/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/[email protected]/[email protected]/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <[email protected]>
* mesa/dri: Add basic plumbing for GLX_ARB_robustness reset notification strategyIan Romanick2013-11-071-0/+1
| | | | | | | | | | | No drivers advertise the DRI2 extension yet, so no driver should ever see a value other than false for notify_reset. The changes in nouveau use tabs because nouveau seems to have it's own indentation rules. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* radeon/r200: remove use of gl_context::DriverCtx fieldBrian Paul2012-10-051-1/+6
|
* r200: get rid of dubious aux scissor bitsRoland Scheidegger2012-08-011-20/+15
| | | | | | | | | no point in emitting aux scissor values if we a) never enable them b) never set the actual values plus it is enough to have that aux scissor enable reg (which we never set to enable) in one place not two.
* dri2: Add plumbing to get context version requirements and flags to driversIan Romanick2012-01-021-0/+4
| | | | | | This adds support for DRI_DRI2 version 3 to all of the DRI2 drivers. Signed-off-by: Ian Romanick <[email protected]>
* dri: Remove unused dri texmem.cKristian Høgsberg2011-11-021-1/+0
|
* radeon: Drop dri2 checks now that it's always true.Eric Anholt2011-10-281-2/+0
| | | | This makes LOCK_HARDWARE empty, so it goes away.
* radeon: Refactor the common texture hook setup to common code.Eric Anholt2011-08-291-2/+0
| | | | Reviewed-by: Brian Paul <[email protected]>
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-131-1/+1
|
* dri: Add DRI entrypoints to create a context for a given APIKristian Høgsberg2010-04-281-1/+2
|
* r200: add blit supportAlex Deucher2010-01-181-0/+2
| | | | Only enabled with KMS.
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-041-6/+6
| | | | | | | | | As part of the DRI driver interface rewrite I merged __DRIscreenPrivate and __DRIscreen, and likewise for __DRIdrawablePrivate and __DRIcontextPrivate. I left typedefs in place though, to avoid renaming all the *Private use internal to the driver. That was probably a mistake, and it turns out a one-line find+sed combo can do the mass rename. Better late than never.
* radeon: fix r100/r200 polygon stipple under kmsDave Airlie2009-09-011-0/+6
| | | | | | | | There really need to use state emits under kms, otherwise we end up with some dwords in the command buffer before we've ever emitted any useful state. Signed-off-by: Dave Airlie <[email protected]>
* r100/r200: Bring back old PolygonStripple for DRI1.Pauli Nieminen2009-08-281-1/+0
| | | | DRI1 didn't have support for command buffer emit for stripple.
* radeon/r200: OQ support for r200 in theory.Dave Airlie2009-08-261-0/+3
| | | | this is an untested port of the r100 OQ code
* r200: Add scissor to state atom list.Pauli Nieminen2009-08-261-0/+10
| | | | Scissors are jsut one of states that we have to emit so it should be in state list
* r200: Remove unnecessery Elts from r200 context.Pauli Nieminen2009-08-211-2/+0
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* radeon/r200/r300: collapse context destruction down to a common path.Dave Airlie2009-04-021-6/+0
| | | | | Context destruction was nearly the same over all the drivers, so collapse it down.
* raedon/r200/r300: mega-FBO commits.Dave Airlie2009-03-231-15/+0
| | | | | | Re work depth issues. Do a lot more FBO abstactions fixup depth/stencil buffer interactions
* r200: enable hw clearsDave Airlie2009-03-101-0/+15
|
* r200/r300: get up to speed on renamed filesDave Airlie2009-02-121-4/+3
|
* radeon/r200/r300: another big merge upheavel.Dave Airlie2009-02-121-13/+1
| | | | | | | | This merges lots of the hw state atom emission and firevertices code. it also removes a lot of the extra radeon crap from r300 and merge scissor
* r200: cleanup some bits that aren't usedDave Airlie2009-02-091-2/+0
|
* r200/r300: swtcl fixups to use old dma buffers on top of BOsDave Airlie2009-01-311-30/+0
|
* r200: bring back single dma flushDave Airlie2009-01-291-3/+0
|
* radeon/r200/r300: bring back old style DMA buffer on top of BOs.Dave Airlie2009-01-291-4/+0
| | | | | | this gets back a lot of the lots speed in gears on r500 at least I also fixed the legacy bufmgr to deal when the dma space fills up
* r200: fix up swtcl/tcl flushesDave Airlie2009-01-221-2/+2
|
* r200: emit elts into a separate ELT boDave Airlie2009-01-231-1/+6
|
* r200: remove indexed vertsDave Airlie2009-01-221-2/+0
|
* r200: clear is working at least - not much elseDave Airlie2009-01-201-3/+5
|
* radeon/r200/r300: consolidate swap buffersDave Airlie2009-01-141-9/+1
|
* radeon/r200/r300: attempt to move lock to common codeDave Airlie2009-01-141-4/+1
|
* radeon/r200/r300: initial attempt to convert to common context codeDave Airlie2009-01-141-70/+7
|
* radeon/r200: move more stuff closer together in contextDave Airlie2009-01-141-12/+4
|
* radeon/r200: move state atom to common headerDave Airlie2009-01-141-80/+38
|
* radeon/r200: start splitting out commonalities into separate headersDave Airlie2009-01-131-189/+22
|
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-4/+4
| | | | Makefile.template
* replace __inline and __inline__ with INLINE macroBrian Paul2008-06-211-1/+1
|
* Refactor and fix core vblank supportJesse Barnes2007-10-291-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidate support for synchronizing to and retrieving vblank counters. Also fix the core vblank code to return monotonic MSC counters, which are required by some GLX extensions. Adding support for multiple pipes to a low level driver is fairly easy, the Intel 965 driver provides simple example code (see intel_buffers.c:intelWindowMoved()). The new code bumps the media stream counter extension version to 2 and adds a new getDrawableMSC callback. This callback takes a drawablePrivate pointer, which is used to calculate the MSC value seen by clients based on the actual vblank counter(s) returned from the kernel. The new drawable private fields are as follows: - vblSeq - used for tracking vblank counts for buffer swapping - vblFlags - flags (e.g. current pipe), updated by low level driver - msc_base - MSC counter from the last time the current pipe changed - vblank_base - kernel DRM vblank counter from the last time the pipe changed Using the above variables, the core vblank code (in vblank.c) can calculate a monotonic MSC value. The low level DRI drivers are responsible for updating the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags) along with msc_base and vblank_base whenever the pipe associated with a given drawable changes (again, see intelWindowMoved for an example of this). Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to driDrawableGetMSC32 and add code for pipe switching as outlined above to fully support the new scheme.
* r200: Implement SetTexOffset hook.Chris Rankin2007-09-291-0/+1
| | | | Implementation guidance by Michel Dänzer, final testing by Timo Aaltonen.
* remove CVS/XFree86 keywordsChristoff Brill2007-05-171-1/+0
|
* r200: simplify / unify input map handling for vp and fftnlRoland Scheidegger2007-02-091-10/+2
| | | | | | Use the same input map handling for fftnl and vertex programs. It doesn't enable any new functionality (should make it easy to support per-vertex materials though), but the code is much cleaner.