Path: blob/21.2-virgl/src/gallium/auxiliary/util/u_framebuffer.h
4561 views
/**************************************************************************1*2* Copyright 2009-2010 VMware, Inc. All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sub license, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial portions14* of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS17* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.19* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR20* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,21* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE22* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24**************************************************************************/252627#ifndef U_FRAMEBUFFER_H28#define U_FRAMEBUFFER_H293031#include "pipe/p_compiler.h"32#include "pipe/p_state.h"333435#ifdef __cplusplus36extern "C" {37#endif3839extern boolean40util_framebuffer_state_equal(const struct pipe_framebuffer_state *dst,41const struct pipe_framebuffer_state *src);4243extern void44util_copy_framebuffer_state(struct pipe_framebuffer_state *dst,45const struct pipe_framebuffer_state *src);464748extern void49util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb);505152extern boolean53util_framebuffer_min_size(const struct pipe_framebuffer_state *fb,54unsigned *width,55unsigned *height);565758extern unsigned59util_framebuffer_get_num_layers(const struct pipe_framebuffer_state *fb);606162extern unsigned63util_framebuffer_get_num_samples(const struct pipe_framebuffer_state *fb);646566extern void67util_sample_locations_flip_y(struct pipe_screen *screen, unsigned fb_height,68unsigned samples, uint8_t *locations);697071#ifdef __cplusplus72}73#endif7475#endif /* U_FRAMEBUFFER_H */767778