Path: blob/21.2-virgl/src/gallium/drivers/r300/compiler/radeon_program_alu.h
4574 views
/*1* Copyright (C) 2008 Nicolai Haehnle.2*3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining6* a copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sublicense, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial15* portions of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,18* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.20* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE21* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION22* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION23* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25*/2627#ifndef __RADEON_PROGRAM_ALU_H_28#define __RADEON_PROGRAM_ALU_H_2930#include "radeon_program.h"3132int radeonTransformALU(33struct radeon_compiler * c,34struct rc_instruction * inst,35void*);3637int r300_transform_vertex_alu(38struct radeon_compiler * c,39struct rc_instruction * inst,40void*);4142int r300_transform_trig_simple(43struct radeon_compiler * c,44struct rc_instruction * inst,45void*);4647int radeonTransformTrigScale(48struct radeon_compiler * c,49struct rc_instruction * inst,50void*);5152int r300_transform_trig_scale_vertex(53struct radeon_compiler *c,54struct rc_instruction *inst,55void*);5657int radeonTransformDeriv(58struct radeon_compiler * c,59struct rc_instruction * inst,60void*);6162void rc_transform_KILL(struct radeon_compiler * c,63void *user);6465int rc_force_output_alpha_to_one(struct radeon_compiler *c,66struct rc_instruction *inst, void *data);6768#endif /* __RADEON_PROGRAM_ALU_H_ */697071