diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-12-31 07:12:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-12-31 07:12:27 +0000 |
commit | 051645c92924bf915d82bf219f2ed67309b5577a (patch) | |
tree | 4aae126dd8e5a18c6a9926a5468d1561e6038a07 /lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h | |
parent | 2dae6fe6f74cf7fb9fd65285302c0331d9786b00 (diff) |
Merge Mesa 17.2.8
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h')
-rw-r--r-- | lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h b/lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h index 1f0cfd6ac..888f1de35 100644 --- a/lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h +++ b/lib/mesa/src/gallium/state_trackers/nine/vertexshader9.h @@ -80,25 +80,25 @@ static inline BOOL NineVertexShader9_UpdateKey( struct NineVertexShader9 *vs, struct NineDevice9 *device ) { - struct nine_state *state = &(device->state); + struct nine_context *context = &(device->context); uint8_t samplers_shadow; uint64_t key; BOOL res; - samplers_shadow = (uint8_t)((state->samplers_shadow & NINE_VS_SAMPLERS_MASK) >> NINE_SAMPLER_VS(0)); + samplers_shadow = (uint8_t)((context->samplers_shadow & NINE_VS_SAMPLERS_MASK) >> NINE_SAMPLER_VS(0)); samplers_shadow &= vs->sampler_mask; key = samplers_shadow; if (vs->byte_code.version < 0x30) - key |= (uint32_t) ((!!state->rs[D3DRS_FOGENABLE]) << 8); - key |= (uint32_t) (device->swvp << 9); + key |= (uint32_t) ((!!context->rs[D3DRS_FOGENABLE]) << 8); + key |= (uint32_t) (context->swvp << 9); /* We want to use a 64 bits key for performance. * Use compressed float16 values for the pointsize min/max in the key. * Shaders do not usually output psize.*/ if (vs->point_size) { - key |= ((uint64_t)util_float_to_half(asfloat(state->rs[D3DRS_POINTSIZE_MIN]))) << 32; - key |= ((uint64_t)util_float_to_half(asfloat(state->rs[D3DRS_POINTSIZE_MAX]))) << 48; + key |= ((uint64_t)util_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MIN]))) << 32; + key |= ((uint64_t)util_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MAX]))) << 48; } res = vs->last_key != key; |