11ced546577745d361ad06577914f44f484656d37Alex Deucher/* 21ced546577745d361ad06577914f44f484656d37Alex Deucher * Copyright (C) 2009 Maciej Cencora <m.cencora@gmail.com> 31ced546577745d361ad06577914f44f484656d37Alex Deucher * 41ced546577745d361ad06577914f44f484656d37Alex Deucher * All Rights Reserved. 51ced546577745d361ad06577914f44f484656d37Alex Deucher * 61ced546577745d361ad06577914f44f484656d37Alex Deucher * Permission is hereby granted, free of charge, to any person obtaining 71ced546577745d361ad06577914f44f484656d37Alex Deucher * a copy of this software and associated documentation files (the 81ced546577745d361ad06577914f44f484656d37Alex Deucher * "Software"), to deal in the Software without restriction, including 91ced546577745d361ad06577914f44f484656d37Alex Deucher * without limitation the rights to use, copy, modify, merge, publish, 101ced546577745d361ad06577914f44f484656d37Alex Deucher * distribute, sublicense, and/or sell copies of the Software, and to 111ced546577745d361ad06577914f44f484656d37Alex Deucher * permit persons to whom the Software is furnished to do so, subject to 121ced546577745d361ad06577914f44f484656d37Alex Deucher * the following conditions: 131ced546577745d361ad06577914f44f484656d37Alex Deucher * 141ced546577745d361ad06577914f44f484656d37Alex Deucher * The above copyright notice and this permission notice (including the 151ced546577745d361ad06577914f44f484656d37Alex Deucher * next paragraph) shall be included in all copies or substantial 161ced546577745d361ad06577914f44f484656d37Alex Deucher * portions of the Software. 171ced546577745d361ad06577914f44f484656d37Alex Deucher * 181ced546577745d361ad06577914f44f484656d37Alex Deucher * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 191ced546577745d361ad06577914f44f484656d37Alex Deucher * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 201ced546577745d361ad06577914f44f484656d37Alex Deucher * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 211ced546577745d361ad06577914f44f484656d37Alex Deucher * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 221ced546577745d361ad06577914f44f484656d37Alex Deucher * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 231ced546577745d361ad06577914f44f484656d37Alex Deucher * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 241ced546577745d361ad06577914f44f484656d37Alex Deucher * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 251ced546577745d361ad06577914f44f484656d37Alex Deucher * 261ced546577745d361ad06577914f44f484656d37Alex Deucher */ 271ced546577745d361ad06577914f44f484656d37Alex Deucher 281ced546577745d361ad06577914f44f484656d37Alex Deucher#ifndef R200_BLIT_H 291ced546577745d361ad06577914f44f484656d37Alex Deucher#define R200_BLIT_H 301ced546577745d361ad06577914f44f484656d37Alex Deucher 311ced546577745d361ad06577914f44f484656d37Alex Deuchervoid r200_blit_init(struct r200_context *r200); 321ced546577745d361ad06577914f44f484656d37Alex Deucher 33b2596c36c8f73e8bb7a0b1679b491662aeb2f9d9Dave Airlieunsigned r200_check_blit(gl_format mesa_format, uint32_t dst_pitch); 343594bf233d16ceb21e97fcdfb57ea45cb0c5e41bAlex Deucher 35f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergunsigned r200_blit(struct gl_context *ctx, 362706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora struct radeon_bo *src_bo, 372706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora intptr_t src_offset, 382706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora gl_format src_mesaformat, 392706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned src_pitch, 402706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned src_width, 412706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned src_height, 422706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned src_x_offset, 432706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned src_y_offset, 442706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora struct radeon_bo *dst_bo, 452706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora intptr_t dst_offset, 462706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora gl_format dst_mesaformat, 472706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned dst_pitch, 482706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned dst_width, 492706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned dst_height, 502706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned dst_x_offset, 512706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned dst_y_offset, 522706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned width, 532706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned height, 542706bc6a8898c7d7e155440cfa793035e56186b8Maciej Cencora unsigned flip_y); 551ced546577745d361ad06577914f44f484656d37Alex Deucher 561ced546577745d361ad06577914f44f484656d37Alex Deucher#endif // R200_BLIT_H 57