bool use_txf)
{
struct pipe_context *pipe = ctx->base.pipe;
- unsigned tgsi_tex = util_pipe_tex_to_tgsi_tex(target, src_nr_samples);
+ enum tgsi_texture_type tgsi_tex =
+ util_pipe_tex_to_tgsi_tex(target, src_nr_samples);
enum tgsi_return_type stype;
enum tgsi_return_type dtype;
unsigned type;
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, nr_samples);
*shader = util_make_fs_blit_msaa_depth(pipe, tgsi_tex);
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, 0);
*shader =
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, nr_samples);
*shader = util_make_fs_blit_msaa_depthstencil(pipe, tgsi_tex);
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, 0);
*shader =
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, nr_samples);
*shader = util_make_fs_blit_msaa_stencil(pipe, tgsi_tex);
/* Create the fragment shader on-demand. */
if (!*shader) {
- unsigned tgsi_tex;
+ enum tgsi_texture_type tgsi_tex;
assert(!ctx->cached_all_shaders);
tgsi_tex = util_pipe_tex_to_tgsi_tex(target, 0);
*shader =
}
/** Convert PIPE_TEXTURE_x to TGSI_TEXTURE_x */
-static inline unsigned
+static inline enum tgsi_texture_type
util_pipe_tex_to_tgsi_tex(enum pipe_texture_target pipe_tex_target,
unsigned nr_samples)
{
static void *
util_make_fs_blit_msaa_gen(struct pipe_context *pipe,
- unsigned tgsi_tex,
+ enum tgsi_texture_type tgsi_tex,
const char *samp_type,
const char *output_semantic,
const char *output_mask,
*/
void *
util_make_fs_blit_msaa_color(struct pipe_context *pipe,
- unsigned tgsi_tex,
+ enum tgsi_texture_type tgsi_tex,
enum tgsi_return_type stype,
enum tgsi_return_type dtype)
{
*/
void *
util_make_fs_blit_msaa_depth(struct pipe_context *pipe,
- unsigned tgsi_tex)
+ enum tgsi_texture_type tgsi_tex)
{
return util_make_fs_blit_msaa_gen(pipe, tgsi_tex, "FLOAT",
"POSITION", ".z", "", "");
*/
void *
util_make_fs_blit_msaa_stencil(struct pipe_context *pipe,
- unsigned tgsi_tex)
+ enum tgsi_texture_type tgsi_tex)
{
return util_make_fs_blit_msaa_gen(pipe, tgsi_tex, "UINT",
"STENCIL", ".y", "", "");
*/
void *
util_make_fs_blit_msaa_depthstencil(struct pipe_context *pipe,
- unsigned tgsi_tex)
+ enum tgsi_texture_type tgsi_tex)
{
static const char shader_templ[] =
"FRAG\n"
void *
util_make_fs_msaa_resolve(struct pipe_context *pipe,
- unsigned tgsi_tex, unsigned nr_samples,
+ enum tgsi_texture_type tgsi_tex, unsigned nr_samples,
enum tgsi_return_type stype)
{
struct ureg_program *ureg;
void *
util_make_fs_msaa_resolve_bilinear(struct pipe_context *pipe,
- unsigned tgsi_tex, unsigned nr_samples,
+ enum tgsi_texture_type tgsi_tex,
+ unsigned nr_samples,
enum tgsi_return_type stype)
{
struct ureg_program *ureg;
extern void *
util_make_fs_blit_msaa_color(struct pipe_context *pipe,
- unsigned tgsi_tex,
+ enum tgsi_texture_type tgsi_tex,
enum tgsi_return_type stype,
enum tgsi_return_type dtype);
extern void *
util_make_fs_blit_msaa_depth(struct pipe_context *pipe,
- unsigned tgsi_tex);
+ enum tgsi_texture_type tgsi_tex);
extern void *
util_make_fs_blit_msaa_depthstencil(struct pipe_context *pipe,
- unsigned tgsi_tex);
+ enum tgsi_texture_type tgsi_tex);
void *
util_make_fs_blit_msaa_stencil(struct pipe_context *pipe,
- unsigned tgsi_tex);
+ enum tgsi_texture_type tgsi_tex);
void *
util_make_fs_msaa_resolve(struct pipe_context *pipe,
- unsigned tgsi_tex, unsigned nr_samples,
+ enum tgsi_texture_type tgsi_tex, unsigned nr_samples,
enum tgsi_return_type stype);
void *
util_make_fs_msaa_resolve_bilinear(struct pipe_context *pipe,
- unsigned tgsi_tex, unsigned nr_samples,
+ enum tgsi_texture_type tgsi_tex,
+ unsigned nr_samples,
enum tgsi_return_type stype);
extern void *