16ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen/************************************************************************** 26ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * 36ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * Copyright 2011 Lauri Kasanen 46ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * All Rights Reserved. 56ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * 66ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * Permission is hereby granted, free of charge, to any person obtaining a 76ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * copy of this software and associated documentation files (the 86ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * "Software"), to deal in the Software without restriction, including 96ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * without limitation the rights to use, copy, modify, merge, publish, 106ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * distribute, sub license, and/or sell copies of the Software, and to 116ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * permit persons to whom the Software is furnished to do so, subject to 126ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * the following conditions: 136ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * 146ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * The above copyright notice and this permission notice (including the 156ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * next paragraph) shall be included in all copies or substantial portions 166ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * of the Software. 176ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * 186ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 196ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 206ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 216ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR 226ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 236ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 246ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 256ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen * 266ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen **************************************************************************/ 276ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen 286ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen#include "postprocess/postprocess.h" 296ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen#include "postprocess/pp_celshade.h" 306ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen#include "postprocess/pp_filters.h" 316ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen 326ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen/** Init function */ 336ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanenvoid 346ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanenpp_celshade_init(struct pp_queue_t *ppq, unsigned int n, unsigned int val) 356ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen{ 366ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen ppq->shaders[n][1] = 376ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen pp_tgsi_to_state(ppq->p->pipe, celshade, false, "celshade"); 386ff00c1afae51512d2680b096d5a9b4d618e82b9Lauri Kasanen} 39