13464ebd5Sriastradh/* 23464ebd5Sriastradh * Copyright 2008 Corbin Simpson <MostAwesomeDude@gmail.com> 33464ebd5Sriastradh * Copyright 2010 Marek Olšák <maraeo@gmail.com> 43464ebd5Sriastradh * 53464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 63464ebd5Sriastradh * copy of this software and associated documentation files (the "Software"), 73464ebd5Sriastradh * to deal in the Software without restriction, including without limitation 83464ebd5Sriastradh * on the rights to use, copy, modify, merge, publish, distribute, sub 93464ebd5Sriastradh * license, and/or sell copies of the Software, and to permit persons to whom 103464ebd5Sriastradh * the Software is furnished to do so, subject to the following conditions: 113464ebd5Sriastradh * 123464ebd5Sriastradh * The above copyright notice and this permission notice (including the next 133464ebd5Sriastradh * paragraph) shall be included in all copies or substantial portions of the 143464ebd5Sriastradh * Software. 153464ebd5Sriastradh * 163464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 173464ebd5Sriastradh * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 183464ebd5Sriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 193464ebd5Sriastradh * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, 203464ebd5Sriastradh * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 213464ebd5Sriastradh * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 223464ebd5Sriastradh * USE OR OTHER DEALINGS IN THE SOFTWARE. */ 233464ebd5Sriastradh 243464ebd5Sriastradh#ifndef R300_TRANSFER 253464ebd5Sriastradh#define R300_TRANSFER 263464ebd5Sriastradh 273464ebd5Sriastradh#include "pipe/p_context.h" 283464ebd5Sriastradh 293464ebd5Sriastradhstruct r300_context; 303464ebd5Sriastradh 31af69d88dSmrgvoid * 32af69d88dSmrgr300_texture_transfer_map(struct pipe_context *ctx, 333464ebd5Sriastradh struct pipe_resource *texture, 343464ebd5Sriastradh unsigned level, 353464ebd5Sriastradh unsigned usage, 36af69d88dSmrg const struct pipe_box *box, 37af69d88dSmrg struct pipe_transfer **transfer); 383464ebd5Sriastradh 393464ebd5Sriastradhvoid 403464ebd5Sriastradhr300_texture_transfer_unmap(struct pipe_context *ctx, 413464ebd5Sriastradh struct pipe_transfer *transfer); 423464ebd5Sriastradh 433464ebd5Sriastradh 443464ebd5Sriastradh#endif 45