Home
last modified time | relevance | path

Searched refs:num_lights (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/gallium/frontends/nine/
Dstateblock9.c332 unsigned num_lights = MAX2(dst->ff.num_lights, src->ff.num_lights); in nine_state_copy_common() local
337 if (dst->ff.num_lights < num_lights) { in nine_state_copy_common()
339 dst->ff.num_lights * sizeof(D3DLIGHT9), in nine_state_copy_common()
340 num_lights * sizeof(D3DLIGHT9)); in nine_state_copy_common()
341 …memset(&dst->ff.light[dst->ff.num_lights], 0, (num_lights - dst->ff.num_lights) * sizeof(D3DLIGHT9… in nine_state_copy_common()
346 for (i = dst->ff.num_lights; i < num_lights; ++i) in nine_state_copy_common()
349 dst->ff.num_lights = num_lights; in nine_state_copy_common()
355 if (src->ff.num_lights < num_lights) { in nine_state_copy_common()
357 src->ff.num_lights * sizeof(D3DLIGHT9), in nine_state_copy_common()
358 num_lights * sizeof(D3DLIGHT9)); in nine_state_copy_common()
[all …]
Dnine_state.h157 unsigned num_lights; member
Ddevice9.c2304 user_assert(Index < state->ff.num_lights, D3DERR_INVALIDCALL); in NineDevice9_GetLight()
2322 if (Index >= state->ff.num_lights || in NineDevice9_LightEnable()
2354 user_assert(Index < state->ff.num_lights, D3DERR_INVALIDCALL); in NineDevice9_GetLightEnable()
2501 if (This->state.ff.num_lights) { in NineDevice9_CreateStateBlock()
2502 dst->ff.num_lights = This->state.ff.num_lights; in NineDevice9_CreateStateBlock()
2506 dst->ff.light = CALLOC(This->state.ff.num_lights, in NineDevice9_CreateStateBlock()
Dnine_state.c2172 for (i = 0; i < src->ff.num_lights; ++i) in nine_context_apply_stateblock()
3619 if (Index >= ff_state->num_lights) { in nine_state_set_light()
3620 unsigned n = ff_state->num_lights; in nine_state_set_light()
3627 ff_state->num_lights = N; in nine_state_set_light()
3649 user_assert(Index < ff_state->num_lights, D3DERR_INVALIDCALL); in nine_state_light_enable()
/third_party/mesa3d/src/mesa/program/
Dprog_statevars.c133 const unsigned num_lights = state[2]; in fetch_state() local
134 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
192 const unsigned num_lights = state[2]; in fetch_state() local
194 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
218 const unsigned num_lights = state[2]; in fetch_state() local
220 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
244 const unsigned num_lights = state[2]; in fetch_state() local
246 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
657 const unsigned num_lights = state[2]; in fetch_state() local
658 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
[all …]