Path: blob/21.2-virgl/src/gallium/drivers/r300/r300_vs.h
4570 views
/*1* Copyright 2009 Corbin Simpson <[email protected]>2* Copyright 2009 Marek Olšák <[email protected]>3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* on the rights to use, copy, modify, merge, publish, distribute, sub8* license, and/or sell copies of the Software, and to permit persons to whom9* the Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice (including the next12* paragraph) shall be included in all copies or substantial portions of the13* Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL18* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,19* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR20* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE21* USE OR OTHER DEALINGS IN THE SOFTWARE. */2223#ifndef R300_VS_H24#define R300_VS_H2526#include "pipe/p_state.h"27#include "tgsi/tgsi_scan.h"28#include "compiler/radeon_code.h"2930#include "r300_context.h"31#include "r300_shader_semantics.h"3233struct r300_context;3435struct r300_vertex_shader {36/* Parent class */37struct pipe_shader_state state;3839struct tgsi_shader_info info;40struct r300_shader_semantics outputs;4142/* Whether the shader was replaced by a dummy one due to a shader43* compilation failure. */44boolean dummy;4546/* Numbers of constants for each type. */47unsigned externals_count;48unsigned immediates_count;4950/* HWTCL-specific. */51/* Machine code (if translated) */52struct r300_vertex_program_code code;5354/* SWTCL-specific. */55void *draw_vs;56};5758void r300_init_vs_outputs(struct r300_context *r300,59struct r300_vertex_shader *vs);6061void r300_translate_vertex_shader(struct r300_context *r300,62struct r300_vertex_shader *vs);6364void r300_draw_init_vertex_shader(struct r300_context *r300,65struct r300_vertex_shader *vs);6667#endif /* R300_VS_H */686970