projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8403df3
)
r300: enable accelerated support for glCopyTexImage only under KMS
author
Maciej Cencora
<m.cencora@gmail.com>
Sun, 13 Dec 2009 16:22:33 +0000
(17:22 +0100)
committer
Maciej Cencora
<m.cencora@gmail.com>
Sun, 13 Dec 2009 16:22:33 +0000
(17:22 +0100)
src/mesa/drivers/dri/r300/r300_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_context.c
b/src/mesa/drivers/dri/r300/r300_context.c
index 05005f61c30ea6c42d332cca4e04883e517fac48..3c6ec2a34a8fc9f85fa338198e25904da1266021 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_context.c
+++ b/
src/mesa/drivers/dri/r300/r300_context.c
@@
-486,7
+486,6
@@
GLboolean r300CreateContext(const __GLcontextModes * glVisual,
r300_init_vtbl(&r300->radeon);
_mesa_init_driver_functions(&functions);
- r300_init_texcopy_functions(&functions);
r300InitIoctlFuncs(&functions);
r300InitStateFuncs(&functions);
r300InitTextureFuncs(&functions);
@@
-494,6
+493,10
@@
GLboolean r300CreateContext(const __GLcontextModes * glVisual,
radeonInitQueryObjFunctions(&functions);
radeonInitBufferObjectFuncs(&functions);
+ if (r300->radeon.radeonScreen->kernel_mm) {
+ r300_init_texcopy_functions(&functions);
+ }
+
if (!radeonInitContext(&r300->radeon, &functions,
glVisual, driContextPriv,
sharedContextPrivate)) {