2007-10-23 17:25:58 +01:00
|
|
|
# Autoconf configuration
|
|
|
|
|
|
|
|
# Pull in the defaults
|
|
|
|
include $(TOP)/configs/default
|
|
|
|
|
|
|
|
# This is generated by configure
|
|
|
|
CONFIG_NAME = autoconf
|
|
|
|
|
|
|
|
# Compiler and flags
|
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
|
|
|
PIC_FLAGS = @PIC_FLAGS@
|
|
|
|
DEFINES = @DEFINES@
|
2010-04-27 18:42:33 +01:00
|
|
|
API_DEFINES = @API_DEFINES@
|
2012-01-24 16:34:42 +00:00
|
|
|
SHARED_GLAPI = @SHARED_GLAPI@
|
2011-02-03 00:19:32 +00:00
|
|
|
CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
|
2012-07-26 17:35:36 +01:00
|
|
|
$(PIC_FLAGS) $(DEFINES)
|
2011-02-03 00:19:32 +00:00
|
|
|
CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
|
2012-07-26 17:35:36 +01:00
|
|
|
$(PIC_FLAGS) $(DEFINES)
|
2011-02-03 00:19:32 +00:00
|
|
|
CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
|
|
|
|
CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) @VISIBILITY_CXXFLAGS@
|
2007-10-23 17:25:58 +01:00
|
|
|
LDFLAGS = @LDFLAGS@
|
2009-02-15 07:03:47 +00:00
|
|
|
RADEON_CFLAGS = @RADEON_CFLAGS@
|
2011-10-14 22:34:19 +01:00
|
|
|
RADEON_LIBS = @RADEON_LIBS@
|
2011-06-03 00:15:44 +01:00
|
|
|
NOUVEAU_CFLAGS = @NOUVEAU_CFLAGS@
|
|
|
|
NOUVEAU_LIBS = @NOUVEAU_LIBS@
|
2010-01-01 22:03:33 +00:00
|
|
|
INTEL_LIBS = @INTEL_LIBS@
|
|
|
|
INTEL_CFLAGS = @INTEL_CFLAGS@
|
2010-03-16 03:53:56 +00:00
|
|
|
X11_LIBS = @X11_LIBS@
|
|
|
|
X11_CFLAGS = @X11_CFLAGS@
|
radeonsi: initial WIP SI code
This commit adds initial support for acceleration
on SI chips. egltri is starting to work.
The SI/R600 llvm backend is currently included in mesa
but that may change in the future.
The plan is to write a single gallium driver and
use gallium to support X acceleration.
This commit contains patches from:
Tom Stellard <thomas.stellard@amd.com>
Michel Dänzer <michel.daenzer@amd.com>
Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
The following commits were squashed in:
======================================================================
radeonsi: Remove unused winsys pointer
This was removed from r600g in commit:
commit 96d882939d612fcc8332f107befec470ed4359de
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Feb 17 01:49:49 2012 +0100
gallium: remove unused winsys pointers in pipe_screen and pipe_context
A winsys is already a private object of a driver.
======================================================================
radeonsi: Copy color clamping CAPs from r600
Not sure if the values of these CAPS are correct for radeonsi, but the
same changed were made to r600g in commit:
commit bc1c8369384b5e16547c5bf9728aa78f8dfd66cc
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Jan 23 03:11:17 2012 +0100
st/mesa: do vertex and fragment color clamping in shaders
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)
We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
======================================================================
radeonsi: Remove PIPE_CAP_OUTPUT_READ
This CAP was dropped in commit:
commit 04e324008759282728a95a1394bac2c4c2a1a3f9
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Feb 23 23:44:36 2012 +0100
gallium: remove PIPE_SHADER_CAP_OUTPUT_READ
r600g is the only driver which has made use of it. The reason the CAP was
added was to fix some piglit tests when the GLSL pass lower_output_reads
didn't exist.
However, not removing output reads breaks the fallback for glClampColorARB,
which assumes outputs are not readable. The fix would be non-trivial
and my personal preference is to remove the CAP, considering that reading
outputs is uncommon and that we can now use lower_output_reads to fix
the issue that the CAP was supposed to workaround in the first place.
======================================================================
radeonsi: Add missing parameters to rws->buffer_get_tiling() call
This was changed in commit:
commit c0c979eebc076b95cc8d18a013ce2968fe6311ad
Author: Jerome Glisse <jglisse@redhat.com>
Date: Mon Jan 30 17:22:13 2012 -0500
r600g: add support for common surface allocator for tiling v13
Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.
v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
======================================================================
radeonsi: Remove PIPE_TRANSFER_MAP_PERMANENTLY
This was removed in commit:
commit 62f44f670bb0162e89fd4786af877f8da9ff607c
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Mar 5 13:45:00 2012 +0100
Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc.
It was decided to refactor the transfer API instead of adding workarounds
to address the performance issues.
======================================================================
radeonsi: Handle PIPE_VIDEO_CAP_PREFERED_FORMAT.
Reintroduced in commit 9d9afcb5bac2931d4b8e6d1aa571e941c5110c90.
======================================================================
radeonsi: nuke the fallback for vertex and fragment color clamping
Ported from r600g commit c2b800cf38b299c1ab1c53dc0e4ea00c7acef853.
======================================================================
radeonsi: don't expose transform_feedback2 without kernel support
Ported from r600g commit 15146fd1bcbb08e44a1cbb984440ee1a5de63d48.
======================================================================
radeonsi: Handle PIPE_CAP_GLSL_FEATURE_LEVEL.
Ported from r600g part of commit 171be755223d99f8cc5cc1bdaf8bd7b4caa04b4f.
======================================================================
radeonsi: set minimum point size to 1.0 for non-sprite non-aa points.
Ported from r600g commit f183cc9ce3ad1d043bdf8b38fd519e8f437714fc.
======================================================================
radeonsi: rework and consolidate stencilref state setting.
Ported from r600g commit a2361946e782b57f0c63587841ca41c0ea707070.
======================================================================
radeonsi: cleanup setting DB_SHADER_CONTROL.
Ported from r600g commit 3d061caaed13b646ff40754f8ebe73f3d4983c5b.
======================================================================
radeonsi: Get rid of register masks.
Ported from r600g commits
3d061caaed13b646ff40754f8ebe73f3d4983c5b..9344ab382a1765c1a7c2560e771485edf4954fe2.
======================================================================
radeonsi: get rid of r600_context_reg.
Ported from r600g commits
9344ab382a1765c1a7c2560e771485edf4954fe2..bed20f02a771f43e1c5092254705701c228cfa7f.
======================================================================
radeonsi: Fix regression from 'Get rid of register masks'.
======================================================================
radeonsi: optimize r600_resource_va.
Ported from r600g commit 669d8766ff3403938794eb80d7769347b6e52174.
======================================================================
radeonsi: remove u8,u16,u32,u64 types.
Ported from r600g commit 78293b99b23268e6698f1267aaf40647c17d95a5.
======================================================================
radeonsi: merge r600_context with r600_pipe_context.
Ported from r600g commit e4340c1908a6a3b09e1a15d5195f6da7d00494d0.
======================================================================
radeonsi: Miscellaneous context cleanups.
Ported from r600g commits
e4340c1908a6a3b09e1a15d5195f6da7d00494d0..621e0db71c5ddcb379171064a4f720c9cf01e888.
======================================================================
radeonsi: add a new simple API for state emission.
Ported from r600g commits
621e0db71c5ddcb379171064a4f720c9cf01e888..f661405637bba32c2cfbeecf6e2e56e414e9521e.
======================================================================
radeonsi: Also remove sbu_flags member of struct r600_reg.
Requires using sid.h instead of r600d.h for the new CP_COHER_CNTL definitions,
so some code needs to be disabled for now.
======================================================================
radeonsi: Miscellaneous simplifications.
Ported from r600g commits 38bf2763482b4f1b6d95cd51aecec75601d8b90f and
b0337b679ad4c2feae59215104cfa60b58a619d5.
======================================================================
radeonsi: Handle PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION.
Ported from commit 8b4f7b0672d663273310fffa9490ad996f5b914a.
======================================================================
radeonsi: Use a fake reloc to sleep for fences.
Ported from r600g commit 8cd03b933cf868ff867e2db4a0937005a02fd0e4.
======================================================================
radeonsi: adapt to get_query_result interface change.
Ported from r600g commit 4445e170bee23a3607ece0e010adef7058ac6a11.
2012-01-06 22:38:37 +00:00
|
|
|
LLVM_BINDIR = @LLVM_BINDIR@
|
2010-04-22 05:59:29 +01:00
|
|
|
LLVM_CFLAGS = @LLVM_CFLAGS@
|
2012-04-24 15:34:57 +01:00
|
|
|
LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
|
radeonsi: initial WIP SI code
This commit adds initial support for acceleration
on SI chips. egltri is starting to work.
The SI/R600 llvm backend is currently included in mesa
but that may change in the future.
The plan is to write a single gallium driver and
use gallium to support X acceleration.
This commit contains patches from:
Tom Stellard <thomas.stellard@amd.com>
Michel Dänzer <michel.daenzer@amd.com>
Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
The following commits were squashed in:
======================================================================
radeonsi: Remove unused winsys pointer
This was removed from r600g in commit:
commit 96d882939d612fcc8332f107befec470ed4359de
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Feb 17 01:49:49 2012 +0100
gallium: remove unused winsys pointers in pipe_screen and pipe_context
A winsys is already a private object of a driver.
======================================================================
radeonsi: Copy color clamping CAPs from r600
Not sure if the values of these CAPS are correct for radeonsi, but the
same changed were made to r600g in commit:
commit bc1c8369384b5e16547c5bf9728aa78f8dfd66cc
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Jan 23 03:11:17 2012 +0100
st/mesa: do vertex and fragment color clamping in shaders
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)
We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
======================================================================
radeonsi: Remove PIPE_CAP_OUTPUT_READ
This CAP was dropped in commit:
commit 04e324008759282728a95a1394bac2c4c2a1a3f9
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Feb 23 23:44:36 2012 +0100
gallium: remove PIPE_SHADER_CAP_OUTPUT_READ
r600g is the only driver which has made use of it. The reason the CAP was
added was to fix some piglit tests when the GLSL pass lower_output_reads
didn't exist.
However, not removing output reads breaks the fallback for glClampColorARB,
which assumes outputs are not readable. The fix would be non-trivial
and my personal preference is to remove the CAP, considering that reading
outputs is uncommon and that we can now use lower_output_reads to fix
the issue that the CAP was supposed to workaround in the first place.
======================================================================
radeonsi: Add missing parameters to rws->buffer_get_tiling() call
This was changed in commit:
commit c0c979eebc076b95cc8d18a013ce2968fe6311ad
Author: Jerome Glisse <jglisse@redhat.com>
Date: Mon Jan 30 17:22:13 2012 -0500
r600g: add support for common surface allocator for tiling v13
Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.
v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
======================================================================
radeonsi: Remove PIPE_TRANSFER_MAP_PERMANENTLY
This was removed in commit:
commit 62f44f670bb0162e89fd4786af877f8da9ff607c
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Mar 5 13:45:00 2012 +0100
Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc.
It was decided to refactor the transfer API instead of adding workarounds
to address the performance issues.
======================================================================
radeonsi: Handle PIPE_VIDEO_CAP_PREFERED_FORMAT.
Reintroduced in commit 9d9afcb5bac2931d4b8e6d1aa571e941c5110c90.
======================================================================
radeonsi: nuke the fallback for vertex and fragment color clamping
Ported from r600g commit c2b800cf38b299c1ab1c53dc0e4ea00c7acef853.
======================================================================
radeonsi: don't expose transform_feedback2 without kernel support
Ported from r600g commit 15146fd1bcbb08e44a1cbb984440ee1a5de63d48.
======================================================================
radeonsi: Handle PIPE_CAP_GLSL_FEATURE_LEVEL.
Ported from r600g part of commit 171be755223d99f8cc5cc1bdaf8bd7b4caa04b4f.
======================================================================
radeonsi: set minimum point size to 1.0 for non-sprite non-aa points.
Ported from r600g commit f183cc9ce3ad1d043bdf8b38fd519e8f437714fc.
======================================================================
radeonsi: rework and consolidate stencilref state setting.
Ported from r600g commit a2361946e782b57f0c63587841ca41c0ea707070.
======================================================================
radeonsi: cleanup setting DB_SHADER_CONTROL.
Ported from r600g commit 3d061caaed13b646ff40754f8ebe73f3d4983c5b.
======================================================================
radeonsi: Get rid of register masks.
Ported from r600g commits
3d061caaed13b646ff40754f8ebe73f3d4983c5b..9344ab382a1765c1a7c2560e771485edf4954fe2.
======================================================================
radeonsi: get rid of r600_context_reg.
Ported from r600g commits
9344ab382a1765c1a7c2560e771485edf4954fe2..bed20f02a771f43e1c5092254705701c228cfa7f.
======================================================================
radeonsi: Fix regression from 'Get rid of register masks'.
======================================================================
radeonsi: optimize r600_resource_va.
Ported from r600g commit 669d8766ff3403938794eb80d7769347b6e52174.
======================================================================
radeonsi: remove u8,u16,u32,u64 types.
Ported from r600g commit 78293b99b23268e6698f1267aaf40647c17d95a5.
======================================================================
radeonsi: merge r600_context with r600_pipe_context.
Ported from r600g commit e4340c1908a6a3b09e1a15d5195f6da7d00494d0.
======================================================================
radeonsi: Miscellaneous context cleanups.
Ported from r600g commits
e4340c1908a6a3b09e1a15d5195f6da7d00494d0..621e0db71c5ddcb379171064a4f720c9cf01e888.
======================================================================
radeonsi: add a new simple API for state emission.
Ported from r600g commits
621e0db71c5ddcb379171064a4f720c9cf01e888..f661405637bba32c2cfbeecf6e2e56e414e9521e.
======================================================================
radeonsi: Also remove sbu_flags member of struct r600_reg.
Requires using sid.h instead of r600d.h for the new CP_COHER_CNTL definitions,
so some code needs to be disabled for now.
======================================================================
radeonsi: Miscellaneous simplifications.
Ported from r600g commits 38bf2763482b4f1b6d95cd51aecec75601d8b90f and
b0337b679ad4c2feae59215104cfa60b58a619d5.
======================================================================
radeonsi: Handle PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION.
Ported from commit 8b4f7b0672d663273310fffa9490ad996f5b914a.
======================================================================
radeonsi: Use a fake reloc to sleep for fences.
Ported from r600g commit 8cd03b933cf868ff867e2db4a0937005a02fd0e4.
======================================================================
radeonsi: adapt to get_query_result interface change.
Ported from r600g commit 4445e170bee23a3607ece0e010adef7058ac6a11.
2012-01-06 22:38:37 +00:00
|
|
|
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
|
2010-04-22 05:59:29 +01:00
|
|
|
LLVM_LDFLAGS = @LLVM_LDFLAGS@
|
2012-04-24 15:34:57 +01:00
|
|
|
LLVM_LIBDIR = @LLVM_LIBDIR@
|
2010-04-22 05:59:29 +01:00
|
|
|
LLVM_LIBS = @LLVM_LIBS@
|
radeonsi: initial WIP SI code
This commit adds initial support for acceleration
on SI chips. egltri is starting to work.
The SI/R600 llvm backend is currently included in mesa
but that may change in the future.
The plan is to write a single gallium driver and
use gallium to support X acceleration.
This commit contains patches from:
Tom Stellard <thomas.stellard@amd.com>
Michel Dänzer <michel.daenzer@amd.com>
Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
The following commits were squashed in:
======================================================================
radeonsi: Remove unused winsys pointer
This was removed from r600g in commit:
commit 96d882939d612fcc8332f107befec470ed4359de
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Feb 17 01:49:49 2012 +0100
gallium: remove unused winsys pointers in pipe_screen and pipe_context
A winsys is already a private object of a driver.
======================================================================
radeonsi: Copy color clamping CAPs from r600
Not sure if the values of these CAPS are correct for radeonsi, but the
same changed were made to r600g in commit:
commit bc1c8369384b5e16547c5bf9728aa78f8dfd66cc
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Jan 23 03:11:17 2012 +0100
st/mesa: do vertex and fragment color clamping in shaders
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)
We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
======================================================================
radeonsi: Remove PIPE_CAP_OUTPUT_READ
This CAP was dropped in commit:
commit 04e324008759282728a95a1394bac2c4c2a1a3f9
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Feb 23 23:44:36 2012 +0100
gallium: remove PIPE_SHADER_CAP_OUTPUT_READ
r600g is the only driver which has made use of it. The reason the CAP was
added was to fix some piglit tests when the GLSL pass lower_output_reads
didn't exist.
However, not removing output reads breaks the fallback for glClampColorARB,
which assumes outputs are not readable. The fix would be non-trivial
and my personal preference is to remove the CAP, considering that reading
outputs is uncommon and that we can now use lower_output_reads to fix
the issue that the CAP was supposed to workaround in the first place.
======================================================================
radeonsi: Add missing parameters to rws->buffer_get_tiling() call
This was changed in commit:
commit c0c979eebc076b95cc8d18a013ce2968fe6311ad
Author: Jerome Glisse <jglisse@redhat.com>
Date: Mon Jan 30 17:22:13 2012 -0500
r600g: add support for common surface allocator for tiling v13
Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.
v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
======================================================================
radeonsi: Remove PIPE_TRANSFER_MAP_PERMANENTLY
This was removed in commit:
commit 62f44f670bb0162e89fd4786af877f8da9ff607c
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Mar 5 13:45:00 2012 +0100
Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc.
It was decided to refactor the transfer API instead of adding workarounds
to address the performance issues.
======================================================================
radeonsi: Handle PIPE_VIDEO_CAP_PREFERED_FORMAT.
Reintroduced in commit 9d9afcb5bac2931d4b8e6d1aa571e941c5110c90.
======================================================================
radeonsi: nuke the fallback for vertex and fragment color clamping
Ported from r600g commit c2b800cf38b299c1ab1c53dc0e4ea00c7acef853.
======================================================================
radeonsi: don't expose transform_feedback2 without kernel support
Ported from r600g commit 15146fd1bcbb08e44a1cbb984440ee1a5de63d48.
======================================================================
radeonsi: Handle PIPE_CAP_GLSL_FEATURE_LEVEL.
Ported from r600g part of commit 171be755223d99f8cc5cc1bdaf8bd7b4caa04b4f.
======================================================================
radeonsi: set minimum point size to 1.0 for non-sprite non-aa points.
Ported from r600g commit f183cc9ce3ad1d043bdf8b38fd519e8f437714fc.
======================================================================
radeonsi: rework and consolidate stencilref state setting.
Ported from r600g commit a2361946e782b57f0c63587841ca41c0ea707070.
======================================================================
radeonsi: cleanup setting DB_SHADER_CONTROL.
Ported from r600g commit 3d061caaed13b646ff40754f8ebe73f3d4983c5b.
======================================================================
radeonsi: Get rid of register masks.
Ported from r600g commits
3d061caaed13b646ff40754f8ebe73f3d4983c5b..9344ab382a1765c1a7c2560e771485edf4954fe2.
======================================================================
radeonsi: get rid of r600_context_reg.
Ported from r600g commits
9344ab382a1765c1a7c2560e771485edf4954fe2..bed20f02a771f43e1c5092254705701c228cfa7f.
======================================================================
radeonsi: Fix regression from 'Get rid of register masks'.
======================================================================
radeonsi: optimize r600_resource_va.
Ported from r600g commit 669d8766ff3403938794eb80d7769347b6e52174.
======================================================================
radeonsi: remove u8,u16,u32,u64 types.
Ported from r600g commit 78293b99b23268e6698f1267aaf40647c17d95a5.
======================================================================
radeonsi: merge r600_context with r600_pipe_context.
Ported from r600g commit e4340c1908a6a3b09e1a15d5195f6da7d00494d0.
======================================================================
radeonsi: Miscellaneous context cleanups.
Ported from r600g commits
e4340c1908a6a3b09e1a15d5195f6da7d00494d0..621e0db71c5ddcb379171064a4f720c9cf01e888.
======================================================================
radeonsi: add a new simple API for state emission.
Ported from r600g commits
621e0db71c5ddcb379171064a4f720c9cf01e888..f661405637bba32c2cfbeecf6e2e56e414e9521e.
======================================================================
radeonsi: Also remove sbu_flags member of struct r600_reg.
Requires using sid.h instead of r600d.h for the new CP_COHER_CNTL definitions,
so some code needs to be disabled for now.
======================================================================
radeonsi: Miscellaneous simplifications.
Ported from r600g commits 38bf2763482b4f1b6d95cd51aecec75601d8b90f and
b0337b679ad4c2feae59215104cfa60b58a619d5.
======================================================================
radeonsi: Handle PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION.
Ported from commit 8b4f7b0672d663273310fffa9490ad996f5b914a.
======================================================================
radeonsi: Use a fake reloc to sleep for fences.
Ported from r600g commit 8cd03b933cf868ff867e2db4a0937005a02fd0e4.
======================================================================
radeonsi: adapt to get_query_result interface change.
Ported from r600g commit 4445e170bee23a3607ece0e010adef7058ac6a11.
2012-01-06 22:38:37 +00:00
|
|
|
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
|
2010-07-01 20:58:57 +01:00
|
|
|
GLW_CFLAGS = @GLW_CFLAGS@
|
2010-12-06 00:58:32 +00:00
|
|
|
GLX_TLS = @GLX_TLS@
|
2010-08-23 01:34:18 +01:00
|
|
|
|
2010-07-16 13:09:29 +01:00
|
|
|
# dlopen
|
|
|
|
DLOPEN_LIBS = @DLOPEN_LIBS@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
2010-05-02 19:09:52 +01:00
|
|
|
# Source selection
|
2012-05-16 17:09:18 +01:00
|
|
|
MESA_ASM_FILES = @MESA_ASM_FILES@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
|
|
|
# Misc tools and flags
|
|
|
|
MAKE = @MAKE@
|
2008-06-30 17:40:30 +01:00
|
|
|
SHELL = @SHELL@
|
2007-11-15 16:59:57 +00:00
|
|
|
MKLIB_OPTIONS = @MKLIB_OPTIONS@
|
2007-10-23 17:25:58 +01:00
|
|
|
MKDEP = @MKDEP@
|
2008-02-25 23:50:26 +00:00
|
|
|
MKDEP_OPTIONS = @MKDEP_OPTIONS@
|
2009-05-22 17:39:02 +01:00
|
|
|
INSTALL = @INSTALL@
|
2011-11-24 20:54:54 +00:00
|
|
|
AWK = @AWK@
|
|
|
|
GREP = @GREP@
|
|
|
|
NM = @NM@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
radeonsi: initial WIP SI code
This commit adds initial support for acceleration
on SI chips. egltri is starting to work.
The SI/R600 llvm backend is currently included in mesa
but that may change in the future.
The plan is to write a single gallium driver and
use gallium to support X acceleration.
This commit contains patches from:
Tom Stellard <thomas.stellard@amd.com>
Michel Dänzer <michel.daenzer@amd.com>
Alex Deucher <alexander.deucher@amd.com>
Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
The following commits were squashed in:
======================================================================
radeonsi: Remove unused winsys pointer
This was removed from r600g in commit:
commit 96d882939d612fcc8332f107befec470ed4359de
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Feb 17 01:49:49 2012 +0100
gallium: remove unused winsys pointers in pipe_screen and pipe_context
A winsys is already a private object of a driver.
======================================================================
radeonsi: Copy color clamping CAPs from r600
Not sure if the values of these CAPS are correct for radeonsi, but the
same changed were made to r600g in commit:
commit bc1c8369384b5e16547c5bf9728aa78f8dfd66cc
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Jan 23 03:11:17 2012 +0100
st/mesa: do vertex and fragment color clamping in shaders
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)
We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
======================================================================
radeonsi: Remove PIPE_CAP_OUTPUT_READ
This CAP was dropped in commit:
commit 04e324008759282728a95a1394bac2c4c2a1a3f9
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Feb 23 23:44:36 2012 +0100
gallium: remove PIPE_SHADER_CAP_OUTPUT_READ
r600g is the only driver which has made use of it. The reason the CAP was
added was to fix some piglit tests when the GLSL pass lower_output_reads
didn't exist.
However, not removing output reads breaks the fallback for glClampColorARB,
which assumes outputs are not readable. The fix would be non-trivial
and my personal preference is to remove the CAP, considering that reading
outputs is uncommon and that we can now use lower_output_reads to fix
the issue that the CAP was supposed to workaround in the first place.
======================================================================
radeonsi: Add missing parameters to rws->buffer_get_tiling() call
This was changed in commit:
commit c0c979eebc076b95cc8d18a013ce2968fe6311ad
Author: Jerome Glisse <jglisse@redhat.com>
Date: Mon Jan 30 17:22:13 2012 -0500
r600g: add support for common surface allocator for tiling v13
Tiled surface have all kind of alignment constraint that needs to
be met. Instead of having all this code duplicated btw ddx and
mesa use common code in libdrm_radeon this also ensure that both
ddx and mesa compute those alignment in the same way.
v2 fix evergreen
v3 fix compressed texture and workaround cube texture issue by
disabling 2D array mode for cubemap (need to check if r7xx and
newer are also affected by the issue)
v4 fix texture array
v5 fix evergreen and newer, split surface values computation from
mipmap tree generation so that we can get them directly from the
ddx
v6 final fix to evergreen tile split value
v7 fix mipmap offset to avoid to use random value, use color view
depth view to address different layer as hardware is doing some
magic rotation depending on the layer
v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on
evergreen, align bytes per pixel to a multiple of a dword
v9 fix handling of stencil on evergreen, half fix for compressed
texture
v10 fix evergreen compressed texture proper support for stencil
tile split. Fix stencil issue when array mode was clear by
the kernel, always program stencil bo. On evergreen depth
buffer bo need to be big enough to hold depth buffer + stencil
buffer as even with stencil disabled things get written there.
v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen,
old ddx overestimate those. Fix linear case when pitch*height < 64.
Fix r300g.
v12 Fix linear case when pitch*height < 64 for old path, adapt to
libdrm API change
v13 add libdrm check
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
======================================================================
radeonsi: Remove PIPE_TRANSFER_MAP_PERMANENTLY
This was removed in commit:
commit 62f44f670bb0162e89fd4786af877f8da9ff607c
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Mar 5 13:45:00 2012 +0100
Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc.
It was decided to refactor the transfer API instead of adding workarounds
to address the performance issues.
======================================================================
radeonsi: Handle PIPE_VIDEO_CAP_PREFERED_FORMAT.
Reintroduced in commit 9d9afcb5bac2931d4b8e6d1aa571e941c5110c90.
======================================================================
radeonsi: nuke the fallback for vertex and fragment color clamping
Ported from r600g commit c2b800cf38b299c1ab1c53dc0e4ea00c7acef853.
======================================================================
radeonsi: don't expose transform_feedback2 without kernel support
Ported from r600g commit 15146fd1bcbb08e44a1cbb984440ee1a5de63d48.
======================================================================
radeonsi: Handle PIPE_CAP_GLSL_FEATURE_LEVEL.
Ported from r600g part of commit 171be755223d99f8cc5cc1bdaf8bd7b4caa04b4f.
======================================================================
radeonsi: set minimum point size to 1.0 for non-sprite non-aa points.
Ported from r600g commit f183cc9ce3ad1d043bdf8b38fd519e8f437714fc.
======================================================================
radeonsi: rework and consolidate stencilref state setting.
Ported from r600g commit a2361946e782b57f0c63587841ca41c0ea707070.
======================================================================
radeonsi: cleanup setting DB_SHADER_CONTROL.
Ported from r600g commit 3d061caaed13b646ff40754f8ebe73f3d4983c5b.
======================================================================
radeonsi: Get rid of register masks.
Ported from r600g commits
3d061caaed13b646ff40754f8ebe73f3d4983c5b..9344ab382a1765c1a7c2560e771485edf4954fe2.
======================================================================
radeonsi: get rid of r600_context_reg.
Ported from r600g commits
9344ab382a1765c1a7c2560e771485edf4954fe2..bed20f02a771f43e1c5092254705701c228cfa7f.
======================================================================
radeonsi: Fix regression from 'Get rid of register masks'.
======================================================================
radeonsi: optimize r600_resource_va.
Ported from r600g commit 669d8766ff3403938794eb80d7769347b6e52174.
======================================================================
radeonsi: remove u8,u16,u32,u64 types.
Ported from r600g commit 78293b99b23268e6698f1267aaf40647c17d95a5.
======================================================================
radeonsi: merge r600_context with r600_pipe_context.
Ported from r600g commit e4340c1908a6a3b09e1a15d5195f6da7d00494d0.
======================================================================
radeonsi: Miscellaneous context cleanups.
Ported from r600g commits
e4340c1908a6a3b09e1a15d5195f6da7d00494d0..621e0db71c5ddcb379171064a4f720c9cf01e888.
======================================================================
radeonsi: add a new simple API for state emission.
Ported from r600g commits
621e0db71c5ddcb379171064a4f720c9cf01e888..f661405637bba32c2cfbeecf6e2e56e414e9521e.
======================================================================
radeonsi: Also remove sbu_flags member of struct r600_reg.
Requires using sid.h instead of r600d.h for the new CP_COHER_CNTL definitions,
so some code needs to be disabled for now.
======================================================================
radeonsi: Miscellaneous simplifications.
Ported from r600g commits 38bf2763482b4f1b6d95cd51aecec75601d8b90f and
b0337b679ad4c2feae59215104cfa60b58a619d5.
======================================================================
radeonsi: Handle PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION.
Ported from commit 8b4f7b0672d663273310fffa9490ad996f5b914a.
======================================================================
radeonsi: Use a fake reloc to sleep for fences.
Ported from r600g commit 8cd03b933cf868ff867e2db4a0937005a02fd0e4.
======================================================================
radeonsi: adapt to get_query_result interface change.
Ported from r600g commit 4445e170bee23a3607ece0e010adef7058ac6a11.
2012-01-06 22:38:37 +00:00
|
|
|
# Perl
|
|
|
|
PERL = @PERL@
|
|
|
|
|
2012-05-30 00:03:05 +01:00
|
|
|
# Indent (used for generating dispatch tables)
|
|
|
|
INDENT = @INDENT@
|
|
|
|
INDENT_FLAGS = @INDENT_FLAGS@
|
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Python and flags (generally only needed by the developers)
|
2010-10-25 21:52:58 +01:00
|
|
|
PYTHON2 = @PYTHON2@
|
2007-10-23 17:25:58 +01:00
|
|
|
PYTHON_FLAGS = -t -O -O
|
|
|
|
|
2011-05-18 14:50:21 +01:00
|
|
|
# Flex and Bison for GLSL compiler
|
2012-01-13 19:31:39 +00:00
|
|
|
FLEX = @LEX@
|
|
|
|
BISON = @YACC@
|
2011-05-18 14:50:21 +01:00
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Library names (base name)
|
2011-10-10 17:33:18 +01:00
|
|
|
GL_LIB = @GL_LIB@
|
|
|
|
GLU_LIB = @GLU_LIB@
|
2007-10-23 17:25:58 +01:00
|
|
|
GLW_LIB = GLw
|
2007-12-06 05:04:15 +00:00
|
|
|
OSMESA_LIB = @OSMESA_LIB@
|
2010-03-06 00:01:43 +00:00
|
|
|
GLESv1_CM_LIB = GLESv1_CM
|
|
|
|
GLESv2_LIB = GLESv2
|
2010-05-04 15:43:05 +01:00
|
|
|
VG_LIB = OpenVG
|
2010-12-26 10:02:59 +00:00
|
|
|
GLAPI_LIB = glapi
|
2007-10-23 17:25:58 +01:00
|
|
|
|
|
|
|
# Library names (actual file names)
|
|
|
|
GL_LIB_NAME = @GL_LIB_NAME@
|
|
|
|
GLU_LIB_NAME = @GLU_LIB_NAME@
|
|
|
|
GLW_LIB_NAME = @GLW_LIB_NAME@
|
|
|
|
OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
|
2009-12-21 03:13:18 +00:00
|
|
|
EGL_LIB_NAME = @EGL_LIB_NAME@
|
2010-03-06 00:01:43 +00:00
|
|
|
GLESv1_CM_LIB_NAME = @GLESv1_CM_LIB_NAME@
|
|
|
|
GLESv2_LIB_NAME = @GLESv2_LIB_NAME@
|
2010-05-04 15:43:05 +01:00
|
|
|
VG_LIB_NAME = @VG_LIB_NAME@
|
2010-12-26 10:02:59 +00:00
|
|
|
GLAPI_LIB_NAME = @GLAPI_LIB_NAME@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
2009-02-09 14:58:38 +00:00
|
|
|
# Globs used to install the lib and all symlinks
|
|
|
|
GL_LIB_GLOB = @GL_LIB_GLOB@
|
|
|
|
GLU_LIB_GLOB = @GLU_LIB_GLOB@
|
|
|
|
GLW_LIB_GLOB = @GLW_LIB_GLOB@
|
2009-12-21 03:13:18 +00:00
|
|
|
EGL_LIB_GLOB = @EGL_LIB_GLOB@
|
2010-03-06 00:01:43 +00:00
|
|
|
GLESv1_CM_LIB_GLOB = @GLESv1_CM_LIB_GLOB@
|
|
|
|
GLESv2_LIB_GLOB = @GLESv2_LIB_GLOB@
|
2010-05-04 15:43:05 +01:00
|
|
|
VG_LIB_GLOB = @VG_LIB_GLOB@
|
2010-12-26 10:02:59 +00:00
|
|
|
GLAPI_LIB_GLOB = @GLAPI_LIB_GLOB@
|
2009-02-09 14:58:38 +00:00
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Directories to build
|
|
|
|
LIB_DIR = @LIB_DIR@
|
|
|
|
SRC_DIRS = @SRC_DIRS@
|
|
|
|
DRIVER_DIRS = @DRIVER_DIRS@
|
2009-02-11 01:38:21 +00:00
|
|
|
GALLIUM_DIRS = @GALLIUM_DIRS@
|
2009-02-20 11:03:18 +00:00
|
|
|
GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
|
2009-02-11 01:38:21 +00:00
|
|
|
GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
|
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
|
|
|
GALLIUM_TARGET_DIRS = @GALLIUM_TARGET_DIRS@
|
2009-02-11 01:38:21 +00:00
|
|
|
GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@
|
2010-01-02 12:51:17 +00:00
|
|
|
GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
|
2009-02-20 11:03:18 +00:00
|
|
|
GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
|
2008-12-18 12:36:07 +00:00
|
|
|
|
2007-12-06 02:47:01 +00:00
|
|
|
# Driver specific build vars
|
2011-02-03 00:19:32 +00:00
|
|
|
DRI_DIRS = @DRI_DIRS@
|
2010-06-17 09:07:46 +01:00
|
|
|
EGL_PLATFORMS = @EGL_PLATFORMS@
|
2010-05-05 08:38:02 +01:00
|
|
|
EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
|
2007-12-06 02:47:01 +00:00
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Dependencies
|
|
|
|
X11_INCLUDES = @X11_INCLUDES@
|
|
|
|
|
2008-07-18 15:40:41 +01:00
|
|
|
# GLw motif setup
|
|
|
|
GLW_SOURCES = @GLW_SOURCES@
|
|
|
|
MOTIF_CFLAGS = @MOTIF_CFLAGS@
|
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Library/program dependencies
|
2012-08-14 20:33:32 +01:00
|
|
|
GL_LIB_DEPS = @GL_LIB_DEPS@
|
2012-02-01 02:34:42 +00:00
|
|
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
|
2012-08-14 20:33:32 +01:00
|
|
|
@OSMESA_LIB_DEPS@
|
|
|
|
EGL_LIB_DEPS = @EGL_LIB_DEPS@
|
2007-10-23 17:25:58 +01:00
|
|
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
|
2012-08-14 20:33:32 +01:00
|
|
|
@GLU_LIB_DEPS@
|
2007-10-23 17:25:58 +01:00
|
|
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \
|
2012-08-14 20:33:32 +01:00
|
|
|
@GLW_LIB_DEPS@
|
|
|
|
GLESv1_CM_LIB_DEPS = @GLESv1_CM_LIB_DEPS@
|
|
|
|
GLESv2_LIB_DEPS = @GLESv2_LIB_DEPS@
|
|
|
|
VG_LIB_DEPS = @VG_LIB_DEPS@
|
|
|
|
GLAPI_LIB_DEPS = @GLAPI_LIB_DEPS@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
2007-12-06 02:47:01 +00:00
|
|
|
# DRI dependencies
|
2012-08-14 20:33:32 +01:00
|
|
|
DRI_LIB_DEPS = @DRI_LIB_DEPS@
|
|
|
|
GALLIUM_DRI_LIB_DEPS = @GALLIUM_DRI_LIB_DEPS@
|
2007-12-06 02:47:01 +00:00
|
|
|
LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
|
|
|
|
LIBDRM_LIB = @LIBDRM_LIBS@
|
DRI interface changes and DRI2 direct rendering support.
Add DRI2 direct rendering support to libGL and add DRI2 client side
protocol code. Extend the GLX 1.3 create drawable functions in
glx_pbuffer.c to call into the DRI driver when possible.
Introduce __DRIconfig, opaque struct that represents a DRI driver
configuration. Get's rid of the open coded __GLcontextModes in the
DRI driver interface and the context modes create and destroy
functions that the loader was requires to provide. glcore.h is no
longer part of the DRI driver interface. The DRI config is GL binding
agnostic, that is, not specific to GLX, EGL or other bindings.
The core API is now also an extension, and the driver exports a list
of extensions as the symbol __driDriverExtensions, which the loader
must dlsym() for. The list of extension will always include the DRI
core extension, which allows creating and manipulating DRI screens,
drawables and contexts. The DRI legacy extension, when available,
provides alternative entry points for creating the DRI objects that
work with the XF86DRI infrastructure.
Change DRI2 client code to not use drm drawables or contexts. We
never used drm_drawable_t's and the only use for drm_context_t was as
a unique identifier when taking the lock. We now just allocate a
unique lock ID out of the DRILock sarea block. Once we get rid of the
lock entirely, we can drop this hack.
Change the interface between dri_util.c and the drivers, so that the
drivers now export the DriverAPI struct as driDriverAPI instead of the
InitScreen entry point. This lets us avoid dlsym()'ing for the DRI2
init screen function to see if DRI2 is supported by the driver.
2008-03-26 23:26:59 +00:00
|
|
|
DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
|
2011-03-07 20:15:02 +00:00
|
|
|
GLPROTO_CFLAGS = @GLPROTO_CFLAGS@
|
2007-12-06 02:47:01 +00:00
|
|
|
EXPAT_INCLUDES = @EXPAT_INCLUDES@
|
|
|
|
|
2007-10-23 17:25:58 +01:00
|
|
|
# Autoconf directories
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
2008-07-03 17:17:44 +01:00
|
|
|
includedir = @includedir@
|
2007-10-23 17:25:58 +01:00
|
|
|
|
|
|
|
# Installation directories (for make install)
|
|
|
|
INSTALL_DIR = $(prefix)
|
2008-07-03 17:17:44 +01:00
|
|
|
INSTALL_LIB_DIR = $(libdir)
|
|
|
|
INSTALL_INC_DIR = $(includedir)
|
2007-12-06 02:47:01 +00:00
|
|
|
|
|
|
|
# DRI installation directories
|
|
|
|
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
|
|
|
|
|
|
|
|
# Where libGL will look for DRI hardware drivers
|
2009-10-28 06:34:14 +00:00
|
|
|
DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
|
2008-11-24 19:01:57 +00:00
|
|
|
|
2010-01-23 12:18:43 +00:00
|
|
|
# EGL driver install directory
|
|
|
|
EGL_DRIVER_INSTALL_DIR = @EGL_DRIVER_INSTALL_DIR@
|
|
|
|
|
2012-04-04 09:54:56 +01:00
|
|
|
# XVMC library install directory
|
|
|
|
XVMC_LIB_INSTALL_DIR=@XVMC_LIB_INSTALL_DIR@
|
|
|
|
|
2010-07-13 23:34:56 +01:00
|
|
|
# VDPAU library install directory
|
|
|
|
VDPAU_LIB_INSTALL_DIR=@VDPAU_LIB_INSTALL_DIR@
|
|
|
|
|
2010-10-24 18:27:29 +01:00
|
|
|
# VA library install directory
|
|
|
|
VA_LIB_INSTALL_DIR=@VA_LIB_INSTALL_DIR@
|
|
|
|
|
2009-03-05 23:46:08 +00:00
|
|
|
# Xorg driver install directory (for xorg state-tracker)
|
|
|
|
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
|
|
|
|
|
2012-03-12 17:53:20 +00:00
|
|
|
# Path to OpenCL C library libclc
|
|
|
|
LIBCLC_PATH = @LIBCLC_PATH@
|
|
|
|
|
2008-11-24 19:01:57 +00:00
|
|
|
# pkg-config substitutions
|
|
|
|
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
|
|
|
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
|
|
|
GL_PC_CFLAGS = @GL_PC_CFLAGS@
|
|
|
|
DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
|
|
|
|
GLU_PC_REQ = @GLU_PC_REQ@
|
|
|
|
GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@
|
|
|
|
GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@
|
|
|
|
GLU_PC_CFLAGS = @GLU_PC_CFLAGS@
|
|
|
|
GLW_PC_REQ_PRIV = @GLW_PC_REQ_PRIV@
|
|
|
|
GLW_PC_LIB_PRIV = @GLW_PC_LIB_PRIV@
|
|
|
|
GLW_PC_CFLAGS = @GLW_PC_CFLAGS@
|
2008-12-14 17:35:29 +00:00
|
|
|
OSMESA_PC_REQ = @OSMESA_PC_REQ@
|
|
|
|
OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
|
2010-05-04 19:13:11 +01:00
|
|
|
GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
|
2010-05-02 14:51:13 +01:00
|
|
|
GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
|
2010-03-10 21:47:36 +00:00
|
|
|
EGL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
|
|
|
EGL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
|
|
|
EGL_PC_CFLAGS = @GL_PC_CFLAGS@
|
2010-02-05 18:55:32 +00:00
|
|
|
|
2010-06-03 03:48:06 +01:00
|
|
|
XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
|
|
|
|
XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
|
|
|
|
LIBUDEV_CFLAGS = @LIBUDEV_CFLAGS@
|
|
|
|
LIBUDEV_LIBS = @LIBUDEV_LIBS@
|
2011-02-04 11:24:08 +00:00
|
|
|
WAYLAND_CFLAGS = @WAYLAND_CFLAGS@
|
|
|
|
WAYLAND_LIBS = @WAYLAND_LIBS@
|
2010-04-22 05:59:29 +01:00
|
|
|
|
|
|
|
MESA_LLVM = @MESA_LLVM@
|
|
|
|
|
|
|
|
LLVM_VERSION = @LLVM_VERSION@
|
2010-04-21 12:58:54 +01:00
|
|
|
|
|
|
|
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
|
2012-04-25 21:16:00 +01:00
|
|
|
|
|
|
|
GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
|
|
|
|
GALLIUM_PIPE_LOADER_LIBS = @GALLIUM_PIPE_LOADER_LIBS@
|