r300: enable HW accelerated gl(Read/Copy/Draw)Pixels
authorMaciej Cencora <m.cencora@gmail.com>
Tue, 9 Mar 2010 20:42:00 +0000 (21:42 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Tue, 9 Mar 2010 20:46:14 +0000 (21:46 +0100)
src/mesa/drivers/dri/r300/r300_state.c

index 5979dedac4fa558f73ef99b2aa7eaeb6b27a3132..8739dcbafbb5fd158d27bd2f1614c31ebbc3b1d4 100644 (file)
@@ -46,6 +46,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "main/simple_list.h"
 #include "main/api_arrayelt.h"
 
+#include "drivers/common/meta.h"
 #include "swrast/swrast.h"
 #include "swrast_setup/swrast_setup.h"
 #include "shader/prog_parameter.h"
@@ -2326,8 +2327,12 @@ void r300InitStateFuncs(struct dd_function_table *functions)
        functions->ClipPlane = r300ClipPlane;
        functions->Scissor = radeonScissor;
 
-       functions->DrawBuffer           = radeonDrawBuffer;
-       functions->ReadBuffer           = radeonReadBuffer;
+       functions->DrawBuffer = radeonDrawBuffer;
+       functions->ReadBuffer = radeonReadBuffer;
+
+       functions->CopyPixels = _mesa_meta_CopyPixels;
+       functions->DrawPixels = _mesa_meta_DrawPixels;
+       functions->ReadPixels = radeonReadPixels;
 }
 
 void r300InitShaderFunctions(r300ContextPtr r300)