1848b8605Smrg/************************************************************************** 2848b8605Smrg * 3848b8605Smrg * Copyright 2008 VMware, Inc. 4848b8605Smrg * All Rights Reserved. 5848b8605Smrg * 6848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 7848b8605Smrg * copy of this software and associated documentation files (the 8848b8605Smrg * "Software"), to deal in the Software without restriction, including 9848b8605Smrg * without limitation the rights to use, copy, modify, merge, publish, 10848b8605Smrg * distribute, sub license, and/or sell copies of the Software, and to 11848b8605Smrg * permit persons to whom the Software is furnished to do so, subject to 12848b8605Smrg * the following conditions: 13848b8605Smrg * 14848b8605Smrg * The above copyright notice and this permission notice (including the 15848b8605Smrg * next paragraph) shall be included in all copies or substantial portions 16848b8605Smrg * of the Software. 17848b8605Smrg * 18848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19848b8605Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20848b8605Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21848b8605Smrg * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 22848b8605Smrg * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23848b8605Smrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24848b8605Smrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25848b8605Smrg * 26848b8605Smrg **************************************************************************/ 27848b8605Smrg 28848b8605Smrg#ifndef I915_SCREEN_H 29848b8605Smrg#define I915_SCREEN_H 30848b8605Smrg 31848b8605Smrg#include "pipe/p_state.h" 32848b8605Smrg#include "pipe/p_screen.h" 33848b8605Smrg 34848b8605Smrg 35848b8605Smrgstruct i915_winsys; 36848b8605Smrg 37848b8605Smrg 38848b8605Smrg/** 39848b8605Smrg * Subclass of pipe_screen 40848b8605Smrg */ 41848b8605Smrgstruct i915_screen 42848b8605Smrg{ 43848b8605Smrg struct pipe_screen base; 44848b8605Smrg 45848b8605Smrg struct i915_winsys *iws; 46848b8605Smrg 47848b8605Smrg boolean is_i945; 48848b8605Smrg 49848b8605Smrg struct { 50848b8605Smrg boolean tiling; 51848b8605Smrg boolean lie; 52848b8605Smrg boolean use_blitter; 53848b8605Smrg } debug; 54848b8605Smrg}; 55848b8605Smrg 56848b8605Smrg 57848b8605Smrg/* 58848b8605Smrg * Cast wrappers 59848b8605Smrg */ 60848b8605Smrg 61848b8605Smrg 62b8e80941Smrgstatic inline struct i915_screen * 63848b8605Smrgi915_screen(struct pipe_screen *pscreen) 64848b8605Smrg{ 65848b8605Smrg return (struct i915_screen *) pscreen; 66848b8605Smrg} 67848b8605Smrg 68848b8605Smrgboolean 69848b8605Smrgi915_is_format_supported(struct pipe_screen *screen, 70848b8605Smrg enum pipe_format format, 71848b8605Smrg enum pipe_texture_target target, 72848b8605Smrg unsigned sample_count, 73b8e80941Smrg unsigned storage_sample_count, 74848b8605Smrg unsigned tex_usage); 75848b8605Smrg 76848b8605Smrg#endif /* I915_SCREEN_H */ 77