summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_screen.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-28mesa: Remove unused allow_large_textures driconf from classic drivers.Eric Anholt1-4/+2
This option hasn't been used since the introduction of DRI2. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-19mesa: Use quotes on bool driconf options to prevent stdbool.h breakage.Eric Anholt1-8/+8
Since stdbool.h's "true" and "false" are #defines, they got expanded when used as macro arguments, and that expanded value was stored in the XML string, producing XML that driconf would then fail to parse. Currently no drivers included stdbool along with driconf, but I keep accidentally doing so on intel as we move towards using normal C. v2: rebase on master. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
2013-02-11radeon: Remove dead STANDALONE_MMIO definesMatt Turner1-1/+0
These were, at some point in the past, used to request that Xorg's compiler.h export a static inline xf86ReadMmio32 instead of a function pointer. compiler.h only has this option for DEC Alpha. But Xorg's compiler.h isn't being included by either of these two files and the radeon driver still works on Alpha, so the definitions are dead and not needed. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2013-02-08Consolidate some redundant definitions of ARRAY_SIZE() macro.Paul Berry1-2/+0
Previous to this patch, there were 13 identical definitions of this macro in Mesa source. That's ridiculous. This patch consolidates 6 of them to a single definition in src/mesa/main/macros.h. Unfortunately, I wasn't able to eliminate the remaining definitions, since they occur in places that don't include src/mesa/main/macros.h: - include/pci_ids/pci_id_driver_map.h - src/egl/drivers/dri2/egl_dri2.h - src/egl/main/egldefines.h - src/gbm/main/backend.c - src/gbm/main/gbm.c - src/glx/glxclient.h - src/mapi/mapi/stub.c I'm open to suggestions as to how to deal with the remaining redundancy. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-12-02glx/dri2: add and use new driver hook flush_with_flagsMarek Olšák1-1/+1
2012-11-30radeon: Fix memory leak in radeonCreateScreen2.Vinson Lee1-1/+3
Fixes a memory leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-29dri: Convert driCreateConfigs to use a gl_format enumIan Romanick1-13/+7
This is instead of the pair of GLenums for format and type that were previously used. This is necessary for the Intel drivers to expose sRGB framebuffer formats. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-15r200: Remove support for software-only NV_vertex_program.Eric Anholt1-4/+1
It wasn't supported in hardware, and the comments in the code indicated no known uses (similar to my experience on Intel) and a possible intent to remove it. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-05radeon/r200: make radeon_context subclass of gl_contextBrian Paul1-3/+3
radeon_context now contains a gl_context, rather than a pointer to one. This will allow some minor core Mesa clean-up.
2012-09-05Don't cast the return value of malloc/reallocMatt Turner1-1/+1
This patch has been generated by the following Coccinelle semantic patch: // Don't cast the return value of malloc/realloc. // // Casting the return value of malloc/realloc only stands to hide // errors. @@ type T; expression E1, E2; @@ - (T) ( _mesa_align_calloc(E1, E2) | _mesa_align_malloc(E1, E2) | calloc(E1, E2) | malloc(E1) | realloc(E1, E2) )
2012-09-01mesa: s/FREE/free/Brian Paul1-5/+5
v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-09-01mesa: s/CALLOC/calloc/Brian Paul1-4/+4
v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-08-07dri: Simplify use of driConcatConfigsChad Versace1-4/+1
If either argument to driConcatConfigs(a, b) is null or the empty list, then simply return the other argument as the resultant list. All callers were accomplishing that same behavior anyway. And each caller accopmplished it with the same pattern. So this patch moves that external pattern into the function. Reviewed-by: <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-02-22gbm: track buffer format through DRI driversJesse Barnes1-0/+2
GBM needs the buffer format in order to communicate with DRM and clients for things like scanout. So track the DRI format requested in the various back ends and use it to return the DRI format back to GBM when requested. GBM will then map this into the GBM surface type (which is in turn based on the DRM fb format list). Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2012-01-30Rename R300_NO_TCL envvar to RADEON_NO_TCLMatt Turner1-1/+1
The envvar works for R100 and R200 too, and the classic R300 driver doesn't even exist anymore. "RADEON_NO_TCL" is already mentioned in the code and is the same envvar used for the R300g driver.
2012-01-24radeon: derive radeon_renderbuffer from swrast_renderbufferBrian Paul1-6/+6
2012-01-24mesa: remove gl_renderbuffer::DataTypeBrian Paul1-1/+1
2012-01-18gbm: Validate usage flags in gbm_bo_create_from_egl_image()Kristian Høgsberg1-1/+1
The entry point is supposed to validate that the EGLImage is suitable for the passed in usage flags, but that was never implemented.
2011-12-08mesa/drivers: use new swrast renderbuffer functionsBrian Paul1-1/+2
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-06radeon: add original r100 to the always tiled depth list.Dave Airlie1-1/+1
According to Alex, he thinks r100 is also covered. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-12-06radeon/r200: add RV200 detiling + add an always tiled flagDave Airlie1-4/+5
passes readpix sanity on the M7. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-11-14radeon: further cleanup of shared codeFabio Pedretti1-12/+2
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-11-14radeon: add some missing FireMV pci idsAlex Deucher1-0/+1
Note: this is a candidate for the stable branches. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-11-07radeon: cleanup radeon shared code after r300 and r600 classic drivers removalFabio Pedretti1-580/+8
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-11-04dri: move __driUtilMessage to xmlconfig.cGeorge Sapountzis1-2/+1
__driUtilMessage seems to have fallen out of favor and is only used by xmlconfig.c now
2011-11-04dri: unify __DRIscreenRecGeorge Sapountzis1-7/+7
Also drop DriverAPI field, this is a static symbol and I don't see why it should be accessed through __DRIscreenRec
2011-11-04dri: unify __DriverAPIRecGeorge Sapountzis1-2/+1
I dropped the comments because they don't add much.
2011-11-02dri: Remove dri2.enabled flagKristian Høgsberg1-2/+0
DRI2 is always enabled now.
2011-11-02dri: Remove remaining DRI1 vblank codeKristian Høgsberg1-1/+0
2011-11-02dri: Remove driMediaStreamCounterExtensionKristian Høgsberg1-3/+0
Also DRI1-only.
2011-11-02dri: Remove driSwapControlExtensionKristian Høgsberg1-3/+1
DRI1-only as well.
2011-11-02dri: Drop driCopySubBufferExtensionKristian Høgsberg1-1/+0
Another DRI1-only extension.
2011-11-02dri: Drop driReadDrawableExtensionKristian Høgsberg1-1/+0
All DRI2 drivers support setting a separate read drawable.
2011-11-02dri: Drop driLegacyExtensionKristian Høgsberg1-1/+0
There are no DRI1 drivers left.
2011-10-30radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernelDave Airlie1-170/+0
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>
2011-10-29radeon/r200: drop remains of non-libdrm_radeon buildDave Airlie1-2/+0
These wrappers and associated symlinks were from the non-libdrm_radeon build. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-28radeon: Drop some remaining DRI1 vblank support code.Eric Anholt1-33/+0
2011-10-28radeon: Drop the DRI1 zero-copy TFP code.Eric Anholt1-11/+0
2011-10-28radeon: Drop the DRI1 swapbuffers implementation.Eric Anholt1-2/+0
2011-10-28radeon: Unifdef RADEON_R300 and RADEON_R600.Eric Anholt1-118/+0
2011-10-28radeon: Delete DRI1 screen init code and thus support for !kernel_mm.Eric Anholt1-495/+5
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. Cleanup of the resulting dead code to follow. Acked-by: Alex Deucher <alexander.deucher@amd.com>
2011-07-15r600c/g: add new NI pci idsAlex Deucher1-0/+2
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-06-22r600c: add missing bank tiling case for evergreenAlex Deucher1-0/+3
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-06-14r600c: add tiling support for evergreen+Alex Deucher1-45/+95
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-31r600c: add support for llanoAlex Deucher1-0/+19
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-06Add pci id for FirePro 2270Kostas Georgiou1-0/+1
Signed-off-by: Kostas Georgiou <georgiou@opengamma.com>
2011-05-03r600c: add some new pci idsAlex Deucher1-0/+4
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-04r600c: add new ontario pci idsAlex Deucher1-0/+2
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-24radeon: fix radeon_create_image_from_name() wrong parameter typeBrian Paul1-3/+3
2011-02-01r200: remove 0x4243 pci idAlex Deucher1-1/+0
There's no such device. 0x4243 is a pci bridge id, not a GPU. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>