summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/vertexshader9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-03-06 15:54:50 +0100
committerAxel Davy <[email protected]>2016-05-18 23:37:14 +0200
commit89344a80fc4479fa3ac466cb17706cf12070afe1 (patch)
treec5e26137ac7846d29c889e34b4f855d524ff53ed /src/gallium/state_trackers/nine/vertexshader9.c
parentae0fdd8a4078a2ba7edc2f0a12cb285a08921c8d (diff)
st/nine: Fix Pointsize in programmable shader
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/vertexshader9.c')
-rw-r--r--src/gallium/state_trackers/nine/vertexshader9.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/vertexshader9.c b/src/gallium/state_trackers/nine/vertexshader9.c
index eb426ca67d7..31135758ff1 100644
--- a/src/gallium/state_trackers/nine/vertexshader9.c
+++ b/src/gallium/state_trackers/nine/vertexshader9.c
@@ -61,6 +61,8 @@ NineVertexShader9_ctor( struct NineVertexShader9 *This,
info.sampler_mask_shadow = 0x0;
info.sampler_ps1xtypes = 0x0;
info.fog_enable = 0;
+ info.point_size_min = 0;
+ info.point_size_max = 0;
hr = nine_translate_shader(device, &info);
if (FAILED(hr))
@@ -145,7 +147,7 @@ void *
NineVertexShader9_GetVariant( struct NineVertexShader9 *This )
{
void *cso;
- uint32_t key;
+ uint64_t key;
key = This->next_key;
if (key == This->last_key)
@@ -163,6 +165,8 @@ NineVertexShader9_GetVariant( struct NineVertexShader9 *This )
info.byte_code = This->byte_code.tokens;
info.sampler_mask_shadow = key & 0xf;
info.fog_enable = device->state.rs[D3DRS_FOGENABLE];
+ info.point_size_min = asfloat(device->state.rs[D3DRS_POINTSIZE_MIN]);
+ info.point_size_max = asfloat(device->state.rs[D3DRS_POINTSIZE_MAX]);
hr = nine_translate_shader(This->base.device, &info);
if (FAILED(hr))