summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_common_context.c
Commit message (Collapse)AuthorAgeFilesLines
* radeon / r200: Pass the API into _mesa_initialize_contextIan Romanick2014-01-271-1/+2
| | | | | | | | | | Otherwise an application that requested an OpenGL ES 1.x context would actually get a desktop OpenGL context. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Cc: "9.1 9.2 10.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* i915,r200,radeon,vega: Change vendor from "VMware, Inc." to "Mesa Project".José Fonseca2014-01-201-1/+1
| | | | | | | | | | These are components which were originally developed by Tungsten Graphics, which was in turn acquired by VMware, but are de facto now being maintained by third-party contributors of the Mesa open-source community. This matches what's reported by swrast driver and a few other components. Suggested by Ian Romanick.
* 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/alanh@tungstengraphics.com/alanh@vmware.com/ s/jens@tungstengraphics.com/jowen@vmware.com/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g s/keithw\?@tungstengraphics.com/keithw@vmware.com/g s/michel@tungstengraphics.com/daenzer@vmware.com/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/zack@tungstengraphics.com/zackr@vmware.com/ # 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 <brianp@vmware.com>
* mesa: Rename API_OPENGL to API_OPENGL_COMPAT.Paul Berry2012-11-291-1/+1
| | | | | | | | | | This should help avoid confusion now that we're using the gl_api enum to distinguishing between core and compatibility API's. The corresponding enum value for core API's is API_OPENGL_CORE. Acked-by: Eric Anholt <eric@anholt.net> Acked-by: Matt Turner <mattst88@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
* mesa: remove the driverCtx parameter to _mesa_create/initialize_context()Brian Paul2012-10-051-1/+1
| | | | No longer used.
* radeon/r200: remove use of gl_context::DriverCtx fieldBrian Paul2012-10-051-5/+0
|
* radeon/r200: make radeon_context subclass of gl_contextBrian Paul2012-10-051-25/+26
| | | | | radeon_context now contains a gl_context, rather than a pointer to one. This will allow some minor core Mesa clean-up.
* Remove useless checks for NULL before freeingMatt Turner2012-09-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has been generated by the following Coccinelle semantic patch: // Remove useless checks for NULL before freeing // // free (NULL) is a no-op, so there is no need to avoid it @@ expression E; @@ + free (E); + E = NULL; - if (unlikely (E != NULL)) { - free(E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; type T; @@ + free ((T) E); + E = NULL; - if (unlikely (E != NULL)) { - free((T) E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; @@ + free (E); - if (unlikely (E != NULL)) { - free (E); - } @@ expression E; type T; @@ + free ((T) E); - if (unlikely (E != NULL)) { - free ((T) E); - } Reviewed-by: Brian Paul <brianp@vmware.com>
* mesa: s/FREE/free/Brian Paul2012-09-011-3/+3
| | | | | | | v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* radeon/r200: get rid of some unneeded cliprect/scissor codeRoland Scheidegger2012-08-011-4/+0
| | | | | Noone was interested in the number of cliprects, and noone cared about the intersect result neither. So just nuke this.
* radeon: derive radeon_renderbuffer from swrast_renderbufferBrian Paul2012-01-241-5/+5
|
* radeon: update flush according to glXMakeCurrent man pageDave Airlie2011-12-051-2/+15
| | | | | | This also copies code from intel driver to do this. Signed-off-by: Dave Airlie <airlied@redhat.com>
* radeon: cleanup radeon shared code after r300 and r600 classic drivers removalFabio Pedretti2011-11-071-53/+12
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* dri: unify __DRIscreenRecGeorge Sapountzis2011-11-041-1/+1
| | | | | Also drop DriverAPI field, this is a static symbol and I don't see why it should be accessed through __DRIscreenRec
* radeon: Check an error return instead of assigning it to a dead variable.Eric Anholt2011-11-031-5/+13
| | | | | | Fixes gcc set-but-unused-variable warning. Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
* dri: Drop unused dri renderbuffer helper functionsKristian Høgsberg2011-11-021-1/+0
|
* dri: Remove dri2.enabled flagKristian Høgsberg2011-11-021-69/+8
| | | | DRI2 is always enabled now.
* dri: Remove DRI1 fields from DRI structsKristian Høgsberg2011-11-021-6/+0
|
* dri: Remove remaining DRI1 vblank codeKristian Høgsberg2011-11-021-10/+0
|
* dri: Remove cliprect information from __DRIdrawableKristian Høgsberg2011-11-021-15/+0
|
* radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernelDave Airlie2011-10-301-47/+8
| | | | | | | | This drops all the old drmSupports* checks since KMS does them all, and it also drop R300_CLASS and R600_CLASS. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
* radeon: Drop some remaining DRI1 vblank support code.Eric Anholt2011-10-281-9/+0
|
* radeon: Drop the non-kernel-memory-manager support, and thus DRI1.Eric Anholt2011-10-281-69/+1
| | | | | | | | | | It's past time, and it was going to get in the way of the renderbuffer mapping refactor. We dropped all the other DRI1 drivers for this release, and I can't imagine anybody supporting DRI1 radeon classic in a new release of Mesa. Diff produced by treating kernel_mm as true, deleting the DRI1 paths that produce kernel_mm false, and deleting code.
* radeon: Remove some remaining set-but-unused variables.Eric Anholt2011-08-021-2/+0
| | | | | | These looked more like copy-and-paste to me than the others (which looked more like possibly someone forgot to write some code in a refactor), so I didn't verify where they came from.
* r600c: add support for llanoAlex Deucher2011-05-311-0/+2
| | | | Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* dri: Remove driver date from renderer stringIan Romanick2011-04-051-4/+1
| | | | | | Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
* radeon: Remove setup of the old dri/ meta code, which is now unused.Eric Anholt2011-02-121-3/+0
|
* mesa: remove _mesa_create_context_for_api()Brian Paul2011-02-081-1/+1
| | | | Just add the gl_api parameter to _mesa_create_context().
* r600c: preserve correct buffer when using fboAndre Maasikas2011-01-181-1/+1
| | | | Hopefully better than previous - this passes more mipgen tests
* r600c: add support for NI asicsAlex Deucher2011-01-061-0/+3
|
* r600c: add Ontario Fusion APU supportAlex Deucher2010-11-221-0/+1
| | | | Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* r600c/evergreen: texture align is group_bytes just like 6xx/7xxAlex Deucher2010-11-171-10/+3
| | | | | | Default group bytes to 512 on evergreen. Don't query tiling config yet for evergreen, the current info returned is not adequate for evergreen (no way to get bank info).
* radeon: fix potential segfault in renderbuffer updateDaniel Lichtenberger2010-11-151-2/+1
| | | | | | | Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31617 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* radeon: Implement EGL_MESA_no_surface_extensionJohann Rudloff2010-11-081-37/+51
|
* r600c: properly align mipmaps to group sizeAlex Deucher2010-11-081-3/+3
| | | | | fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31400
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-3/+3
|
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-131-1/+1
|
* r200: revalidate after radeon_update_renderbuffersDaniel Vetter2010-10-111-3/+5
| | | | | | | | | | | | | | | | | By calling radeon_draw_buffers (which sets the necessary flags in radeon->NewGLState) and revalidating if NewGLState is non-zero in r200TclPrimitive. This fixes an assert in libdrm (the color-/ depthbuffer was changed but not yet validated) and and stops the kernel cs checker from complaining about them (when they're too small). Thanks to Mario Kleiner for the hint to call radeon_draw_buffer (instead of my half-broken hack). v2: Also fix the swtcl r200 path. Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
* r600c: fix mipmap stride on evergreenAlex Deucher2010-09-241-3/+10
| | | | taken from Dave's r600g fix
* dri: Unset current context and dispatch table when unbindingKristian Høgsberg2010-09-081-0/+3
| | | | | | | | Otherwise, when we switch to an indirect glx context and then back, it looks like we're still current. https://bugs.freedesktop.org/show_bug.cgi?id=29977#c7 Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
* radeon: print chip family for evergreen in renderer stringAlex Deucher2010-08-231-0/+5
|
* r600: add span support for 2D tilingAlex Deucher2010-08-051-1/+8
| | | | | | | Requires tiling config ioctl support from the drm to use. kms only. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* radeon: Add DRI2 flush extension support, so we synchronize properly.Mario Kleiner2010-08-021-0/+49
| | | | | | | | | | | | | | When a DRI2 swap buffer is pending we need to make sure we have the flush extension so radeon doesn't resume rendering to or reading from the not yet blitted front buffer. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
* Revert "radeon: Add DRI2 flush extension to so we synchronize properly."Jerome Glisse2010-08-021-42/+0
| | | | This reverts commit 8446f257b3e3ca4a3eb2c79bc357e46343e04e87.
* radeon: Add DRI2 flush extension to so we synchronize properly.Mario Kleiner2010-08-021-0/+42
| | | | | | | | | | | | | | | | | When DRI2 swap buffer is pending (copy buffer not pageflipping) we need to make sure we have the flush extension so radeon doesn't resume rendering on the not yet blitted front buffer. Modified version of Jerome's patch to add flush extension in the correct place. This prepares a possible fix for: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
* radeon: Also flush if it's not the current context that's being destroyed.Henri Verbeet2010-07-151-1/+1
| | | | | | | This avoids calling radeonFlush() during context destruction, when ctx->DrawBuffer would be NULL. NOTE: This is a candidate for the 7.8 branch.
* radeon: Remove unnecessary headers.Vinson Lee2010-01-301-5/+0
|
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-041-7/+7
| | | | | | | | | 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: Only get DRI2 front buffer information for glXBindTexImageEXT.Michel Dänzer2009-12-051-26/+31
|
* radeon: fix compressed mipmapped texturesMaciej Cencora2009-11-211-1/+1
| | | | Tested on r300 only, other cards may require adjusting texture_compressed_row_align.