aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x/gd3d11
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-09-23 13:31:30 +0200
committerLuca Barbieri <[email protected]>2010-09-23 16:06:02 +0200
commite5ae4588d150a179974a812887f3b6445d8e2f34 (patch)
tree07b510061c612dd55f522cfe724bf8e7cccf1196 /src/gallium/state_trackers/d3d1x/gd3d11
parent75c29fe1c853d5d5e7be6af3187a4d4e36832f5b (diff)
d3d1x: s/tpf/sm4/g
Diffstat (limited to 'src/gallium/state_trackers/d3d1x/gd3d11')
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
index 50039e388d5..0c8d3ed9433 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
@@ -1172,17 +1172,17 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
#endif
)
{
- dxbc_chunk_header* tpf_chunk = dxbc_find_shader_bytecode(pShaderBytecode, BytecodeLength);
- if(!tpf_chunk)
+ dxbc_chunk_header* sm4_chunk = dxbc_find_shader_bytecode(pShaderBytecode, BytecodeLength);
+ if(!sm4_chunk)
return 0;
- std::auto_ptr<tpf_program> tpf(tpf_parse(tpf_chunk + 1, bswap_le32(tpf_chunk->size)));
- if(!tpf.get())
+ std::auto_ptr<sm4_program> sm4(sm4_parse(sm4_chunk + 1, bswap_le32(sm4_chunk->size)));
+ if(!sm4.get())
return 0;
struct pipe_shader_state tgsi_shader;
memset(&tgsi_shader, 0, sizeof(tgsi_shader));
- tgsi_shader.tokens = (const tgsi_token*)tpf_to_tgsi(*tpf);
+ tgsi_shader.tokens = (const tgsi_token*)sm4_to_tgsi(*sm4);
if(!tgsi_shader.tokens)
return 0;
@@ -1211,8 +1211,8 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
if(shader)
{
- shader->slot_to_resource = tpf->slot_to_resource;
- shader->slot_to_sampler = tpf->slot_to_sampler;
+ shader->slot_to_resource = sm4->slot_to_resource;
+ shader->slot_to_sampler = sm4->slot_to_sampler;
}
free((void*)tgsi_shader.tokens);