diff options
author | Francisco Jerez <currojerez@riseup.net> | 2012-03-18 23:59:33 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2012-05-11 12:39:42 +0200 |
commit | 57c048f291ffcb97d7df3177d92f9634e510dcc0 (patch) | |
tree | 16f1a407d28ea263fb396fb03a5db84d341ecdd2 /src/gallium/include/pipe/p_state.h | |
parent | 2644952bd4dfa3b75112dee8dfd287a12d770705 (diff) | |
download | external_mesa3d-57c048f291ffcb97d7df3177d92f9634e510dcc0.zip external_mesa3d-57c048f291ffcb97d7df3177d92f9634e510dcc0.tar.gz external_mesa3d-57c048f291ffcb97d7df3177d92f9634e510dcc0.tar.bz2 |
gallium/compute: Drop TGSI dependency.
Add a shader cap for specifying the preferred shader representation.
Right now the only supported value is TGSI, other enum values will be
added as they are needed.
This is mainly to accommodate AMD's LLVM compiler back-end by letting
it bypass the TGSI representation for compute programs. Other drivers
will keep using the common TGSI instruction set.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 7e741cf..02cd1fd 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -584,7 +584,7 @@ struct pipe_resolve_info struct pipe_compute_state { - const struct tgsi_token *tokens; /**< Compute program to be executed. */ + const void *prog; /**< Compute program to be executed. */ unsigned req_local_mem; /**< Required size of the LOCAL resource. */ unsigned req_private_mem; /**< Required size of the PRIVATE resource. */ unsigned req_input_mem; /**< Required size of the INPUT resource. */ |