ilo: compile VS/GS/FS with the toy compiler

This commit is contained in:
Chia-I Wu
2012-12-13 05:48:46 +08:00
committed by Chia-I Wu
parent 7118ff8bb0
commit 825aa60707
6 changed files with 4460 additions and 20 deletions
+4
View File
@@ -17,6 +17,10 @@ C_SOURCES := \
ilo_shader.c \
ilo_state.c \
ilo_video.c \
shader/ilo_shader_cs.c \
shader/ilo_shader_fs.c \
shader/ilo_shader_gs.c \
shader/ilo_shader_vs.c \
shader/toy_compiler.c \
shader/toy_compiler_asm.c \
shader/toy_compiler_disasm.c \
+14 -20
View File
@@ -211,33 +211,27 @@ ilo_shader_cache_mark_busy(struct ilo_shader_cache *shc)
shc->busy = true;
}
static inline struct ilo_shader *
struct ilo_shader *
ilo_shader_compile_vs(const struct ilo_shader_state *state,
const struct ilo_shader_variant *variant)
{
return NULL;
}
const struct ilo_shader_variant *variant);
static inline struct ilo_shader *
struct ilo_shader *
ilo_shader_compile_gs(const struct ilo_shader_state *state,
const struct ilo_shader_variant *variant)
{
return NULL;
}
const struct ilo_shader_variant *variant);
static inline struct ilo_shader *
bool
ilo_shader_compile_gs_passthrough(const struct ilo_shader_state *vs_state,
const struct ilo_shader_variant *vs_variant,
const int *so_mapping,
struct ilo_shader *vs);
struct ilo_shader *
ilo_shader_compile_fs(const struct ilo_shader_state *state,
const struct ilo_shader_variant *variant)
{
return NULL;
}
const struct ilo_shader_variant *variant);
static inline struct ilo_shader *
struct ilo_shader *
ilo_shader_compile_cs(const struct ilo_shader_state *state,
const struct ilo_shader_variant *variant)
{
return NULL;
}
const struct ilo_shader_variant *variant);
static inline void
ilo_shader_destroy(struct ilo_shader *sh)
@@ -0,0 +1,38 @@
/*
* Mesa 3-D graphics library
*
* Copyright (C) 2012-2013 LunarG, Inc.
*
* 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 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:
* Chia-I Wu <olv@lunarg.com>
*/
#include "ilo_shader.h"
/**
* Compile the compute shader.
*/
struct ilo_shader *
ilo_shader_compile_cs(const struct ilo_shader_state *state,
const struct ilo_shader_variant *variant)
{
return NULL;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff