diff options
author | Dave Airlie <airlied@redhat.com> | 2009-03-06 02:31:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-03-06 02:37:10 +1000 |
commit | 5c80eb7ec13e064b81302da6c672e96a7a7e4e95 (patch) | |
tree | 3d31ddcbf4525d15c2555359c60badb7af08819d /src/mesa/drivers/dri/radeon | |
parent | 31f129880719f75c491fa2ad269055fbc2fb9b95 (diff) |
r200: add set tex buffer support
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index ecca81f715..e90dffd766 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -354,6 +354,11 @@ static const __DRItexOffsetExtension r200texOffsetExtension = { { __DRI_TEX_OFFSET, __DRI_TEX_OFFSET_VERSION }, r200SetTexOffset, }; + +static const __DRItexBufferExtension r200TexBufferExtension = { + { __DRI_TEX_BUFFER, __DRI_TEX_BUFFER_VERSION }, + r200SetTexBuffer, +}; #endif #if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300) @@ -1092,7 +1097,6 @@ radeonCreateScreen2(__DRIscreenPrivate *sPriv) } #if !RADEON_COMMON - screen->extensions[i++] = &radeonTexOffsetExtension.base; screen->extensions[i++] = &radeonTexBufferExtension.base; #endif @@ -1100,11 +1104,10 @@ radeonCreateScreen2(__DRIscreenPrivate *sPriv) if (IS_R200_CLASS(screen)) screen->extensions[i++] = &r200AllocateExtension.base; - screen->extensions[i++] = &r200texOffsetExtension.base; + screen->extensions[i++] = &r200TexBufferExtension.base; #endif #if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300) - //screen->extensions[i++] = &r300texOffsetExtension.base; screen->extensions[i++] = &r300TexBufferExtension.base; #endif |