Searched refs:textures (Results 1 - 25 of 72) sorted by relevance

123

/vbox/src/VBox/Additions/common/crOpenGL/pack/
H A Dpackspu_texture.c36 void PACKSPU_APIENTRY packspu_DeleteTextures(GLsizei n, const GLuint * textures) argument
38 crStateDeleteTextures(n, textures);
39 crPackDeleteTextures(n, textures);
42 void PACKSPU_APIENTRY packspu_GenTextures( GLsizei n, GLuint * textures )
53 crPackGenTexturesSWAP( n, textures, &writeback );
57 crPackGenTextures( n, textures, &writeback );
65 textures[i] = SWAP32(textures[i]);
69 crStateRegTextures(n, textures);
H A Dpackspu_misc.c322 packspu_AreTexturesResident( GLsizei n, const GLuint * textures, argument
337 crPackAreTexturesResidentSWAP( n, textures, residences, &return_val, &writeback );
341 crPackAreTexturesResident( n, textures, residences, &return_val, &writeback );
/vbox/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/main/
H A Dtexobj.h83 _mesa_GenTextures( GLsizei n, GLuint *textures );
87 _mesa_DeleteTextures( GLsizei n, const GLuint *textures );
95 _mesa_PrioritizeTextures( GLsizei n, const GLuint *textures,
100 _mesa_AreTexturesResident( GLsizei n, const GLuint *textures,
/vbox/src/VBox/HostServices/SharedOpenGL/crserverlib/
H A Dserver_gentextures.c14 void SERVER_DISPATCH_APIENTRY crServerDispatchGenTextures( GLsizei n, GLuint *textures )
17 (void) textures;
H A Dserver_texture.c201 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteTextures( GLsizei n, const GLuint *textures) argument
214 newTextures[i] = crStateGetTextureHWID(textures[i]);
219 // crDebug("DeleteTexture: %d, pid %d, ctx %d", textures[i], (uint32_t)cr_server.curClient->pid, cr_server.currentCtxInfo->pContext->id);
223 crStateDeleteTextures(n, textures);
229 void SERVER_DISPATCH_APIENTRY crServerDispatchPrioritizeTextures( GLsizei n, const GLuint * textures, const GLclampf * priorities ) argument
240 crStatePrioritizeTextures(n, textures, priorities);
244 newTextures[i] = crStateGetTextureHWID(textures[i]);
252 /*@todo will fail for textures loaded from snapshot */
263 crServerDispatchAreTexturesResident(GLsizei n, const GLuint *textures, argument
275 textures2[i] = crStateGetTextureHWID(textures[
[all...]
/vbox/src/VBox/GuestHost/OpenGL/packer/
H A Dpack_texture.c283 crPackDeleteTextures(GLsizei n, const GLuint * textures) argument
288 n * sizeof( *textures );
292 crMemcpy(data_ptr + 4, textures, n * sizeof(*textures));
360 crPackPrioritizeTextures(GLsizei n, const GLuint * textures, argument
366 n * sizeof(*textures) +
372 crMemcpy(data_ptr + 4, textures, n * sizeof(*textures));
373 crMemcpy(data_ptr + 4 + n * sizeof(*textures),
697 crPackAreTexturesResident(GLsizei n, const GLuint * textures, argument
[all...]
H A Dpack_swap_texture.c265 void PACK_APIENTRY crPackDeleteTexturesSWAP( GLsizei n, const GLuint *textures )
272 n*sizeof( *textures );
279 WRITE_DATA( i*sizeof(int) + 4, GLint, SWAP32(textures[i]) );
346 const GLuint *textures, const GLclampf *priorities )
351 n*sizeof( *textures ) +
359 WRITE_DATA( i*sizeof(int) + 4, GLint, SWAP32(textures[i]));
363 WRITE_DATA( i*sizeof(int) + 4 + n*sizeof( *textures ),
661 void PACK_APIENTRY crPackAreTexturesResidentSWAP( GLsizei n, const GLuint *textures, GLboolean *residences, GLboolean *return_val, int *writeback ) argument
672 n*sizeof( *textures ) + /* textures */
345 crPackPrioritizeTexturesSWAP( GLsizei n, const GLuint *textures, const GLclampf *priorities ) argument
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/
H A Dstateblock.c270 states->textures = 0xfffff;
508 if (This->textures[counter]) IWineD3DBaseTexture_Release(This->textures[counter]);
841 map = This->changed.textures;
846 TRACE("Updating texture %u to %p (was %p).\n", i, targetStateBlock->textures[i], This->textures[i]);
848 if (targetStateBlock->textures[i]) IWineD3DBaseTexture_AddRef(targetStateBlock->textures[i]);
849 if (This->textures[i]) IWineD3DBaseTexture_Release(This->textures[
[all...]
H A Dnvidia_texture_shader.c57 if(stateblock->textures[stage]) {
58 switch(IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[stage])) {
484 if (tex_used && mapped_stage >= gl_info->limits.textures)
518 if (gl_info->supported[NV_TEXTURE_SHADER2] && mapped_stage < gl_info->limits.textures)
581 if (mapped_stage == WINED3D_UNMAPPED_STAGE || mapped_stage >= context->gl_info->limits.textures) return;
600 if (mapped_stage < context->gl_info->limits.textures)
669 * not support 3D textures. This asks for trouble if an app uses both bump mapping
670 * and 3D textures. It also allows us to keep the code simpler by having texture
684 pCaps->MaxSimultaneousTextures = gl_info->limits.textures;
865 FALSE /* we cannot disable projected textures
[all...]
H A Ddrawprim.c193 FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n");
197 if (!pixelShader && !This->stateBlock->textures[textureNo]) continue;
742 if (This->stateBlock->textures[textureNo] != NULL) {
743 sprintf(buffer, "/tmp/texture_%p_%ld_%d.tga", This->stateBlock->textures[textureNo], primCounter, textureNo);
745 if (IWineD3DBaseTexture_GetType(This->stateBlock->textures[textureNo]) == WINED3DRTYPE_TEXTURE) {
746 IWineD3DTexture_GetSurfaceLevel(This->stateBlock->textures[textureNo], 0, &pSur);
750 FIXME("base Texture isn't of type texture %d\n", IWineD3DBaseTexture_GetType(This->stateBlock->textures[textureNo]));
H A Dstate.c489 if (stateblock->textures[0])
491 UINT texture_dimensions = IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[0]);
497 surf = (IWineD3DSurfaceImpl *) ((IWineD3DTextureImpl *)stateblock->textures[0])->surfaces[0];
782 /* Note the texture color applies to all textures whereas
791 /* Note the WINED3DRS value applies to all textures, but GL has one
1627 if (gl_info->limits.point_sprite_units < gl_info->limits.textures && !warned)
2036 if (isAlpha && This->stateBlock->textures[Stage] == NULL && arg1 == WINED3DTA_TEXTURE) {
3035 if (tex_used && mapped_stage >= gl_info->limits.textures)
3094 if (tex_used && mapped_stage >= gl_info->limits.textures)
3108 if (stateblock->renderState[WINED3DRS_COLORKEYENABLE] && stage == 0 && stateblock->textures[
[all...]
H A Ddevice.c481 if (!(texture = (IWineD3DBaseTextureImpl *)stateblock->textures[idx])) return;
624 /* TODO: Clean up all the surfaces and textures! */
1527 bound. We emulate this by creating dummy textures and binding them to each
1539 for (i = 0; i < gl_info->limits.textures; ++i)
1575 glDeleteTextures(gl_info->limits.textures, device->dummyTextureName);
1576 checkGLcall("glDeleteTextures(gl_info->limits.textures, device->dummyTextureName)");
1579 memset(device->dummyTextureName, 0, gl_info->limits.textures * sizeof(*device->dummyTextureName));
2926 * SetSampler is designed to allow for more than the standard up to 8 textures
2927 * and Geforce has stopped supporting more than 6 standard textures in openGL.
4182 if (stage >= sizeof(This->stateBlock->textures) / sizeo
[all...]
H A Dutils.c2300 if (This->stateBlock->textures[stage]) return FALSE;
2312 /* Setup this textures matrix according to the texture flags*/
2722 texture = (IWineD3DBaseTextureImpl *) stateblock->textures[i];
2779 if (i == 0 && stateblock->textures[0] && stateblock->renderState[WINED3DRS_COLORKEYENABLE])
2781 UINT texture_dimensions = IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[0]);
2786 surf = (IWineD3DSurfaceImpl *) ((IWineD3DTextureImpl *) stateblock->textures[0])->surfaces[0];
2934 if (stateblock->textures[stage])
2936 switch (IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[stage])) {
3011 /* Binding textures is done by samplers. A dummy texture will be bound */
3025 if (mapped_stage == WINED3D_UNMAPPED_STAGE || mapped_stage >= context->gl_info->limits.textures) retur
[all...]
/vbox/src/VBox/HostServices/SharedOpenGL/unpacker/
H A Dunpack_texture.c118 GLuint *textures = DATA_POINTER( sizeof( int ) + 4, GLuint ); local
120 cr_unpackDispatch.DeleteTextures( n, textures );
128 GLuint *textures = DATA_POINTER( sizeof( int ) + 4, GLuint ); local
132 cr_unpackDispatch.PrioritizeTextures( n, textures, priorities );
324 const GLuint *textures = DATA_POINTER( 12, const GLuint ); local
327 (void) cr_unpackDispatch.AreTexturesResident( n, textures, NULL );
/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/
H A Dstateblock.c271 states->textures = 0xfffff;
497 if ((texture = state->textures[i]))
499 state->textures[i] = NULL;
941 map = stateblock->changed.textures;
947 i, src_state->textures[i], stateblock->state.textures[i]);
949 if (src_state->textures[i])
950 wined3d_texture_incref(src_state->textures[i]);
951 if (stateblock->state.textures[i])
952 wined3d_texture_decref(stateblock->state.textures[
[all...]
H A Dnvidia_texture_shader.c59 if (state->textures[stage])
61 switch (state->textures[stage]->target)
505 if (tex_used && mapped_stage >= gl_info->limits.textures)
542 if (gl_info->supported[NV_TEXTURE_SHADER2] && mapped_stage < gl_info->limits.textures)
564 texture_activate_dimensions(state->textures[stage], gl_info);
619 if (mapped_stage == WINED3D_UNMAPPED_STAGE || mapped_stage >= context->gl_info->limits.textures)
642 if (mapped_stage < gl_info->limits.textures)
736 * not support 3D textures. This asks for trouble if an app uses both bump mapping
737 * and 3D textures. It also allows us to keep the code simpler by having texture
750 caps->MaxSimultaneousTextures = gl_info->limits.textures;
[all...]
H A Ddevice.c368 if (!(texture = state->textures[idx])) return;
890 * We emulate this by creating dummy textures and binding them
2292 struct wined3d_texture *texture = state->textures[0];
3761 if (stage >= sizeof(device->stateBlock->state.textures) / sizeof(*device->stateBlock->state.textures))
3773 device->updateStateBlock->changed.textures |= 1 << stage;
3775 prev = device->updateStateBlock->state.textures[stage];
3785 device->updateStateBlock->state.textures[stage] = texture;
3834 * happen if applications bind textures to a single stage only. */
3838 if (device->updateStateBlock->state.textures[
[all...]
H A Dati_fragment_shader.c411 for (stage = 0; stage < gl_info->limits.textures; ++stage)
439 for (stage = 0; stage < gl_info->limits.textures; ++stage)
489 /* Pass 3: Generate sampling instructions for regular textures */
490 for (stage = 0; stage < gl_info->limits.textures; ++stage)
890 texture_activate_dimensions(state->textures[i], gl_info);
1145 /* GL_ATI_fragment_shader always supports 6 textures, which was the limit on r200 cards
1147 * If the current card has more than 8 fixed function textures in OpenGL's regular fixed
1149 * shouldn't be too hard since Nvidia cards have a limit of 4 textures with the default ffp
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/vbox/
H A DVBoxDbgGl.c286 Assert(ActiveTexUnit < GL_TEXTURE0 + RT_ELEMENTS(pDevice->stateBlock->textures));
290 for (iStage = 0; iStage < RT_ELEMENTS(pDevice->stateBlock->textures); ++iStage)
294 const IWineD3DTextureImpl *pTexture = (IWineD3DTextureImpl*)pDevice->stateBlock->textures[iStage];
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/vbox/
H A DVBoxDbgGl.c286 Assert(ActiveTexUnit < GL_TEXTURE0 + RT_ELEMENTS(pDevice->stateBlock->textures));
290 for (iStage = 0; iStage < RT_ELEMENTS(pDevice->stateBlock->textures); ++iStage)
294 const IWineD3DTextureImpl *pTexture = (IWineD3DTextureImpl*)pDevice->stateBlock->textures[iStage];
/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/
H A DVBoxDbgGl.c295 Assert(gl_info->limits.combined_samplers <= RT_ELEMENTS(pDevice->stateBlock->state.textures));
307 const struct wined3d_texture *pTexture = (const struct wined3d_texture*)pDevice->stateBlock->state.textures[iStage];
/vbox/src/VBox/HostServices/SharedOpenGL/dlm/
H A Ddlm_pointers.c641 int crdlm_pointers_PrioritizeTextures(struct instancePrioritizeTextures *instance, GLsizei n, const GLuint *textures, const GLclampf *priorities) argument
645 instance->textures = (GLuint *)&instance->data[0];
648 crMemcpy(instance->textures, textures, n * sizeof(GLuint));
H A Ddlm_pointers.h53 extern int crdlm_pointers_PrioritizeTextures(struct instancePrioritizeTextures *instance, GLsizei n, const GLuint *textures, const GLclampf *priorities);
/vbox/src/VBox/Devices/Graphics/shaderlib/
H A Ddirectx.c616 * If real NP2 textures are used, the driver falls back to software. We could just remove the
619 * GL_WINE_normalized_texrect, which signals the code that it can use non power of two textures
1989 gl_info->limits.textures = 1;
2231 gl_info->limits.textures = min(MAX_TEXTURES, gl_max);
2232 TRACE_(d3d_caps)("Max textures: %d.\n", gl_info->limits.textures);
2491 gl_info->limits.point_sprite_units = gl_info->limits.textures;
/vbox/src/VBox/GuestHost/OpenGL/state_tracker/
H A Dstate_texture.c675 void STATE_APIENTRY crStateGenTextures(GLsizei n, GLuint *textures) argument
678 crStateGenNames(g, g->shared->textureTable, n, textures);
758 void STATE_APIENTRY crStateDeleteTextures(GLsizei n, const GLuint *textures) argument
784 GLuint name = textures[i];
3301 crStatePrioritizeTextures(GLsizei n, const GLuint *textures, argument
3311 GLuint tex = textures[i];
3331 crStateAreTexturesResident(GLsizei n, const GLuint *textures, argument
3335 UNUSED(textures);

Completed in 318 milliseconds

123