diff options
author | Rob Clark <[email protected]> | 2014-02-21 14:36:11 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-02-23 14:58:23 -0500 |
commit | bb255fdf06caa7fcf9af7c65524beb28a3a4faf5 (patch) | |
tree | b3967396f05f0ff78b3c5702961ddf0b647a58e7 /src/gallium/drivers/freedreno/freedreno_program.h | |
parent | 1c953b7cda8169c1132259d83efff4df7afbf74a (diff) |
freedreno/a3xx: drop hand-coded blit/solid shaders
Instead in the common code, construct these shaders from TGSI. For now
we let a2xx keep it's hand coded shaders, as it's compiler isn't quite
up to the job yet. All the same it is a net drop in code size and gets
rid of special cases.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_program.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_program.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_program.h b/src/gallium/drivers/freedreno/freedreno_program.h new file mode 100644 index 00000000000..37efe1bcf4d --- /dev/null +++ b/src/gallium/drivers/freedreno/freedreno_program.h @@ -0,0 +1,37 @@ +/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ + +/* + * Copyright (C) 2014 Rob Clark <[email protected]> + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Authors: + * Rob Clark <[email protected]> + */ + +#ifndef FREEDRENO_PROGRAM_H_ +#define FREEDRENO_PROGRAM_H_ + +#include "pipe/p_context.h" + +void fd_prog_init(struct pipe_context *pctx); +void fd_prog_fini(struct pipe_context *pctx); + +#endif /* FREEDRENO_PROGRAM_H_ */ |