[PATCH] wined3d: Recognize SM5 dcl_resource_raw instruction.
Józef Kucia
joseph.kucia at gmail.com
Sun Jan 29 06:13:03 CST 2017
On Sun, Jan 29, 2017 at 11:52 AM, Guillaume Charifi
<guillaume.charifi at sfr.fr> wrote:
> Signed-off-by: Guillaume Charifi <guillaume.charifi at sfr.fr>
> ---
> dlls/wined3d/arb_program_shader.c | 1 +
> dlls/wined3d/glsl_shader.c | 1 +
> dlls/wined3d/shader.c | 6 ++++++
> dlls/wined3d/shader_sm4.c | 10 ++++++++++
> dlls/wined3d/wined3d_private.h | 1 +
> 5 files changed, 19 insertions(+)
This patch doesn't even compile. Please test your patches before
sending them to wine-patches.
> +static void shader_sm5_read_dcl_resource_raw(struct wined3d_shader_instruction *ins,
> + DWORD opcode, DWORD opcode_token, const DWORD *tokens, unsigned int token_count,
> + struct wined3d_sm4_data *priv)
> +{
> + shader_sm4_read_dst_param(priv, &tokens, WINED3D_DATA_RESOURCE, &ins->declaration.raw_resource.reg);
> +}
You should just use "ins->declaration.dst".
More information about the wine-devel
mailing list