Home | History | Annotate | Download | only in r200
      1 /**************************************************************************
      2 
      3 Copyright (C) 2004 Nicolai Haehnle.
      4 Copyright (C) The Weather Channel, Inc.  2002.  All Rights Reserved.
      5 
      6 The Weather Channel (TM) funded Tungsten Graphics to develop the
      7 initial release of the Radeon 8500 driver under the XFree86 license.
      8 This notice must be preserved.
      9 
     10 All Rights Reserved.
     11 
     12 Permission is hereby granted, free of charge, to any person obtaining a
     13 copy of this software and associated documentation files (the "Software"),
     14 to deal in the Software without restriction, including without limitation
     15 on the rights to use, copy, modify, merge, publish, distribute, sub
     16 license, and/or sell copies of the Software, and to permit persons to whom
     17 the Software is furnished to do so, subject to the following conditions:
     18 
     19 The above copyright notice and this permission notice (including the next
     20 paragraph) shall be included in all copies or substantial portions of the
     21 Software.
     22 
     23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     24 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     25 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
     26 ATI, VA LINUX SYSTEMS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
     27 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
     28 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
     29 USE OR OTHER DEALINGS IN THE SOFTWARE.
     30 
     31 **************************************************************************/
     32 
     33 #ifndef RADEON_DMA_H
     34 #define RADEON_DMA_H
     35 
     36 void radeonEmitVec4(uint32_t *out, const GLvoid * data, int stride, int count);
     37 void radeonEmitVec8(uint32_t *out, const GLvoid * data, int stride, int count);
     38 void radeonEmitVec12(uint32_t *out, const GLvoid * data, int stride, int count);
     39 void radeonEmitVec16(uint32_t *out, const GLvoid * data, int stride, int count);
     40 
     41 void rcommon_emit_vector(struct gl_context * ctx, struct radeon_aos *aos,
     42 			 const GLvoid * data, int size, int stride, int count);
     43 void rcommon_emit_vecfog(struct gl_context *ctx, struct radeon_aos *aos,
     44 			 GLvoid *data, int stride, int count);
     45 
     46 void radeonReturnDmaRegion(radeonContextPtr rmesa, int return_bytes);
     47 void radeonRefillCurrentDmaRegion(radeonContextPtr rmesa, int size);
     48 void radeon_init_dma(radeonContextPtr rmesa);
     49 void radeonReturnDmaRegion(radeonContextPtr rmesa, int return_bytes);
     50 void radeonAllocDmaRegion(radeonContextPtr rmesa,
     51 			  struct radeon_bo **pbo, int *poffset,
     52 			  int bytes, int alignment);
     53 void radeonReleaseDmaRegions(radeonContextPtr rmesa);
     54 
     55 void rcommon_flush_last_swtcl_prim(struct gl_context *ctx);
     56 
     57 void *rcommonAllocDmaLowVerts(radeonContextPtr rmesa, int nverts, int vsize);
     58 void radeonFreeDmaRegions(radeonContextPtr rmesa);
     59 void radeonReleaseArrays( struct gl_context *ctx, GLuint newinputs );
     60 #endif
     61