101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell/************************************************************************** 201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 3877128505431adaf817dc8069172ebe4a1cdf5d8José Fonseca * Copyright 2003 VMware, Inc. 401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * All Rights Reserved. 501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * copy of this software and associated documentation files (the 801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * "Software"), to deal in the Software without restriction, including 901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * without limitation the rights to use, copy, modify, merge, publish, 1001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * distribute, sub license, and/or sell copies of the Software, and to 1101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * permit persons to whom the Software is furnished to do so, subject to 1201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * the following conditions: 1301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 1401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * The above copyright notice and this permission notice (including the 1501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * next paragraph) shall be included in all copies or substantial portions 1601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * of the Software. 1701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 1801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21877128505431adaf817dc8069172ebe4a1cdf5d8José Fonseca * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 2201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 2301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 2401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 2601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell **************************************************************************/ 2701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 2801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#ifndef I915_BLIT_H 2901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#define I915_BLIT_H 3001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 3101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#include "i915_context.h" 3201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 3301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwellextern void i915_copy_blit(struct i915_context *i915, 347864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned cpp, 357864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned short src_pitch, 36bc88c95990f871a206a8fe93e7541f1f41841f7eJakob Bornecrantz struct i915_winsys_buffer *src_buffer, 377864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned src_offset, 387864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned short dst_pitch, 39bc88c95990f871a206a8fe93e7541f1f41841f7eJakob Bornecrantz struct i915_winsys_buffer *dst_buffer, 407864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned dst_offset, 417864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz short srcx, short srcy, 427864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz short dstx, short dsty, 437864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz short w, short h); 4401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 4501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwellextern void i915_fill_blit(struct i915_context *i915, 467864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned cpp, 474bc7b14224bfb9c5efe37e1505345fb90ba69d9eRoland Scheidegger unsigned rgba_mask, 487864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned short dst_pitch, 49bc88c95990f871a206a8fe93e7541f1f41841f7eJakob Bornecrantz struct i915_winsys_buffer *dst_buffer, 507864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz unsigned dst_offset, 517864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz short x, short y, 527864b0e717755a26688891195e85a62714d50baaJakob Bornecrantz short w, short h, unsigned color); 5301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 5401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 5501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#endif 56