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.c2176 for (i = 0; i < src->ff.num_lights; ++i) in nine_context_apply_stateblock()
3612 if (Index >= ff_state->num_lights) { in nine_state_set_light()
3613 unsigned n = ff_state->num_lights; in nine_state_set_light()
3620 ff_state->num_lights = N; in nine_state_set_light()
3642 user_assert(Index < ff_state->num_lights, D3DERR_INVALIDCALL); in nine_state_light_enable()
/third_party/mesa3d/src/mesa/program/
Dprog_statevars.c134 const unsigned num_lights = state[2]; in fetch_state() local
135 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
193 const unsigned num_lights = state[2]; in fetch_state() local
195 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
219 const unsigned num_lights = state[2]; in fetch_state() local
221 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
245 const unsigned num_lights = state[2]; in fetch_state() local
247 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
658 const unsigned num_lights = state[2]; in fetch_state() local
659 for (unsigned i = 0; i < num_lights; i++) { in fetch_state()
[all …]