/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/ |
H A D | surface.c | 142 UINT surface_calculate_size(const struct wined3d_format_desc *format_desc, UINT alignment, UINT width, UINT height) argument 146 if (format_desc->format == WINED3DFMT_UNKNOWN) 150 else if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED) 152 UINT row_block_count = (width + format_desc->block_width - 1) / format_desc->block_width; 153 UINT row_count = (height + format_desc->block_height - 1) / format_desc->block_height; 154 size = row_count * row_block_count * format_desc->block_byte_count; 159 size = height * (((width * format_desc->byte_count) + alignment - 1) & ~(alignment - 1)); 162 if (format_desc 398 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, gl_info); local 694 const struct wined3d_format_desc *format_desc = This->resource.format_desc; local 845 surface_upload_data(IWineD3DSurfaceImpl *This, const struct wined3d_gl_info *gl_info, const struct wined3d_format_desc *format_desc, BOOL srgb, const GLvoid *data) argument 922 surface_upload_data_rect(IWineD3DSurfaceImpl *This, IWineD3DSurfaceImpl *Src, const struct wined3d_gl_info *gl_info, const struct wined3d_format_desc *format_desc, BOOL srgb, const GLvoid *data, RECT *pRect) argument 1002 surface_allocate_surface(IWineD3DSurfaceImpl *This, const struct wined3d_gl_info *gl_info, const struct wined3d_format_desc *format_desc, BOOL srgb) argument [all...] |
H A D | surface_gdi.c | 310 const struct wined3d_format_desc *format_desc = This->resource.format_desc; local 327 if (This->resource.format_desc->format == WINED3DFMT_P8_UINT) 356 pix_width = format_desc->byte_count; 358 red_shift = get_shift(format_desc->red_mask); 359 green_shift = get_shift(format_desc->green_mask); 360 blue_shift = get_shift(format_desc->blue_mask); 361 alpha_shift = get_shift(format_desc->alpha_mask); 376 comp = color & format_desc->red_mask; 378 comp = color & format_desc [all...] |
H A D | surface_base.c | 188 pDesc->format = This->resource.format_desc->format; 340 const struct wined3d_format_desc *format_desc = This->resource.format_desc; local 344 if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED) 348 UINT row_block_count = (This->currentDesc.Width + format_desc->block_width - 1) / format_desc->block_width; 349 ret = row_block_count * format_desc->block_byte_count; 354 ret = This->resource.format_desc->byte_count * This->currentDesc.Width; /* Bytes / row */ 516 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, local 519 if (This->resource.format_desc 541 const struct wined3d_format_desc *format_desc = This->resource.format_desc; local 1926 const struct wined3d_format_desc *format_desc = This->resource.format_desc; local [all...] |
H A D | volume.c | 217 pDesc->Format = This->resource.format_desc->format; 240 pLockedVolume->RowPitch = This->resource.format_desc->byte_count * This->currentDesc.Width; /* Bytes / row */ 241 pLockedVolume->SlicePitch = This->resource.format_desc->byte_count 270 + (pBox->Left * This->resource.format_desc->byte_count); 340 const struct wined3d_format_desc *glDesc = This->resource.format_desc; 419 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, gl_info); local 431 width * height * depth * format_desc->byte_count, usage, format_desc, pool, parent, parent_ops
|
H A D | directx.c | 2838 const struct wined3d_format_desc *format_desc = getFormatDescEntry(Format, &This->adapters[Adapter].gl_info); local 2839 UINT format_bits = format_desc->byte_count * CHAR_BIT; 2885 const struct wined3d_format_desc *format_desc = getFormatDescEntry(Format, &This->adapters[Adapter].gl_info); local 2886 UINT format_bits = format_desc->byte_count * CHAR_BIT; 3152 const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc) 3160 if (format_desc->Flags & WINED3DFMT_FLAG_FLOAT) return FALSE; 3163 if (!getColorBits(format_desc, &redSize, &greenSize, &blueSize, &alphaSize, &colorBits)) 3165 ERR("Unable to check compatibility for Format=%s\n", debug_d3dformat(format_desc->format)); 3189 const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc) 3197 if (!getDepthStencilBits(format_desc, 3151 IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(const struct wined3d_gl_info *gl_info, const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc) argument 3188 IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(const struct wined3d_gl_info *gl_info, const WineD3D_PixelFormat *cfg, const struct wined3d_format_desc *format_desc) argument 3461 CheckBumpMapCapability(struct wined3d_adapter *adapter, WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc) argument 3521 CheckFilterCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc) argument 3573 CheckSrgbReadCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc) argument 3606 CheckSrgbWriteCapability(struct wined3d_adapter *adapter, WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc) argument 3629 CheckPostPixelShaderBlendingCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc) argument 3638 CheckWrapAndMipCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc) argument 3653 CheckTextureCapability(struct wined3d_adapter *adapter, WINED3DDEVTYPE DeviceType, const struct wined3d_format_desc *format_desc) argument 3937 CheckVertexTextureCapability(struct wined3d_adapter *adapter, const struct wined3d_format_desc *format_desc) argument 3973 const struct wined3d_format_desc *format_desc = getFormatDescEntry(CheckFormat, gl_info); local [all...] |
H A D | utils.c | 924 struct wined3d_format_desc *format_desc; local 934 format_desc = &gl_info->gl_formats[fmt_idx]; 935 format_desc->block_width = format_compression_info[i].block_width; 936 format_desc->block_height = format_compression_info[i].block_height; 937 format_desc->block_byte_count = format_compression_info[i].block_byte_count; 938 format_desc->Flags |= WINED3DFMT_FLAG_COMPRESSED; 945 static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined3d_format_desc *format_desc) argument 962 glTexImage2D(GL_TEXTURE_2D, 0, format_desc->glInternal, 16, 16, 0, 963 format_desc->glFormat, format_desc 1462 struct wined3d_format_desc *format_desc; local 2422 getColorBits(const struct wined3d_format_desc *format_desc, short *redSize, short *greenSize, short *blueSize, short *alphaSize, short *totalSize) argument 2459 getDepthStencilBits(const struct wined3d_format_desc *format_desc, short *depthSize, short *stencilSize) argument [all...] |
H A D | resource.c | 40 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 55 resource->format_desc = format_desc; 39 resource_init(IWineD3DResource *iface, WINED3DRESOURCETYPE resource_type, IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, WINED3DPOOL pool, IUnknown *parent, const struct wined3d_parent_ops *parent_ops , HANDLE *shared_handle , void *pvClientMem ) argument
|
H A D | drawprim.c | 144 if (num_untracked_materials && element->format_desc->format != WINED3DFMT_B8G8R8A8_UNORM) 145 FIXME("Implement diffuse color tracking from %s\n", debug_d3dformat(element->format_desc->format)); 160 || si->elements[WINED3D_FFP_POSITION].format_desc->format == WINED3DFMT_R32G32B32A32_FLOAT) 165 if (element->format_desc->format == WINED3DFMT_B8G8R8A8_UNORM) specular_fog = TRUE; 166 else FIXME("Implement fog coordinates from %s\n", debug_d3dformat(element->format_desc->format)); 262 multi_texcoord_funcs[si->elements[WINED3D_FFP_TEXCOORD0 + coord_idx].format_desc->emit_idx]( 270 diffuse_funcs[si->elements[WINED3D_FFP_DIFFUSE].format_desc->emit_idx](ptrToCoords); 293 specular_funcs[si->elements[WINED3D_FFP_SPECULAR].format_desc->emit_idx](ptrToCoords); 305 normal_funcs[si->elements[WINED3D_FFP_NORMAL].format_desc->emit_idx](ptrToCoords); 311 position_funcs[si->elements[WINED3D_FFP_POSITION].format_desc [all...] |
H A D | texture.c | 78 if (This->resource.format_desc->format == WINED3DFMT_P8_UINT 79 || This->resource.format_desc->format == WINED3DFMT_P8_UINT_A8_UNORM) 520 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, gl_info); local 584 device, 0, usage, format_desc, pool, parent, parent_ops 610 && !(format_desc->format == WINED3DFMT_P8_UINT && gl_info->supported[EXT_PALETTED_TEXTURE] 622 if(texture->resource.format_desc->Flags & WINED3DFMT_FLAG_FILTERING) 659 hr = IWineD3DDeviceParent_CreateSurface(device->device_parent, parent, tmp_w, tmp_h, format_desc->format, 668 hr = IWineD3DDeviceParent_CreateSurface(device->device_parent, parent, tmp_w, tmp_h, format_desc->format,
|
H A D | vertexdeclaration.c | 233 e->format_desc = getFormatDescEntry(elements[i].format, gl_info); 248 if (!e->format_desc->gl_vtx_format)
|
H A D | buffer.c | 260 debug_d3dformat(attrib->format_desc->format)); 284 attrib_size = attrib->format_desc->component_count * attrib->format_desc->component_size; 317 format = attrib->format_desc->format; 365 format = strided->elements[i].format_desc->format; 389 orig_type_size = strided->elements[i].format_desc->component_count 390 * strided->elements[i].format_desc->component_size; 1464 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, &device->adapter->gl_info); local 1478 device, size, usage, format_desc, pool, parent, parent_ops 1491 debug_d3dformat(buffer->resource.format_desc [all...] |
H A D | cubetexture.c | 81 if (This->resource.format_desc->format == WINED3DFMT_P8_UINT 82 || This->resource.format_desc->format == WINED3DFMT_P8_UINT_A8_UNORM) 501 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, gl_info); local 547 device, 0, usage, format_desc, pool, parent, parent_ops
|
H A D | state.c | 261 && !(target->resource.format_desc->Flags & WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING)) 293 dstBlend = target->resource.format_desc->alpha_mask ? GL_DST_ALPHA : GL_ONE; 296 dstBlend = target->resource.format_desc->alpha_mask ? GL_ONE_MINUS_DST_ALPHA : GL_ZERO; 335 srcBlend = target->resource.format_desc->alpha_mask ? GL_DST_ALPHA : GL_ONE; 338 srcBlend = target->resource.format_desc->alpha_mask ? GL_ONE_MINUS_DST_ALPHA : GL_ZERO; 504 if (!surf->resource.format_desc->alpha_mask) enable_ckey = TRUE; 3118 if (surf->CKeyFlags & WINEDDSD_CKSRCBLT && !surf->resource.format_desc->alpha_mask) 3209 ? stateblock->device->strided_streams.elements[WINED3D_FFP_TEXCOORD0 + coordIdx].format_desc->format 3272 glTexCoordPointer(e->format_desc->gl_vtx_format, e->format_desc [all...] |
H A D | basetexture.c | 42 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 59 size, usage, format_desc, pool, parent, parent_ops 83 if (texture->resource.format_desc->Flags & WINED3DFMT_FLAG_FILTERING) 41 basetexture_init(IWineD3DBaseTextureImpl *texture, UINT levels, WINED3DRESOURCETYPE resource_type, IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, WINED3DPOOL pool, IUnknown *parent, const struct wined3d_parent_ops *parent_ops , HANDLE *shared_handle , void **pavClientMem ) argument
|
H A D | swapchain.c | 252 if (0 && gl_info->fbo_ops.glBlitFramebuffer && is_identity_fixup(backbuffer->resource.format_desc->color_fixup)) 290 if (is_complex_fixup(backbuffer->resource.format_desc->color_fixup)) 396 cursor.resource.format_desc = getFormatDescEntry(WINED3DFMT_B8G8R8A8_UNORM, context->gl_info); 898 const struct wined3d_format_desc *format_desc; local 989 format_desc = getFormatDescEntry(mode.Format, &adapter->gl_info); 1212 devmode.dmBitsPerPel = format_desc->byte_count * 8;
|
H A D | volumetexture.c | 375 const struct wined3d_format_desc *format_desc = getFormatDescEntry(format, gl_info); local 427 device, 0, usage, format_desc, pool, parent, parent_ops
|
H A D | device.c | 291 debug_d3dformat(element->format_desc->format), debug_d3ddeclusage(element->usage)); 306 element->offset, stride, debug_d3dformat(element->format_desc->format), buffer_object); 308 stream_info->elements[idx].format_desc = element->format_desc; 315 && element->format_desc->format == WINED3DFMT_B8G8R8A8_UNORM) 360 const struct wined3d_format_desc *format_desc = getFormatDescEntry(strided->format, gl_info); local 361 e->format_desc = format_desc; 395 if (!stream_info->elements[i].format_desc) continue; 398 && stream_info->elements[i].format_desc 1189 const struct wined3d_format_desc *format_desc; local 2050 const struct wined3d_format_desc *format_desc = getFormatDescEntry(pMode->Format, &This->adapter->gl_info); local 6340 const struct wined3d_format_desc *format_desc = getFormatDescEntry(WINED3DFMT_B8G8R8A8_UNORM, gl_info); local [all...] |
H A D | context.c | 207 DWORD format_flags = depth_stencil->resource.format_desc->Flags; 321 i, attachment, debug_d3dformat(attachment->resource.format_desc->format), 329 attachment, debug_d3dformat(attachment->resource.format_desc->format), 1587 color_format_desc = target->resource.format_desc; 2644 if (match_depth_stencil_format(swapchain->ds_format, depth_stencil->resource.format_desc)) return; 2790 const struct wined3d_format_desc *old = ((IWineD3DSurfaceImpl *)context->current_rt)->resource.format_desc; 2791 const struct wined3d_format_desc *new = ((IWineD3DSurfaceImpl *)target)->resource.format_desc;
|
H A D | wined3d_private.h | 867 si->elements[name].data, si->elements[name].stride, si->elements[name].format_desc->format, \ 957 const struct wined3d_format_desc *format_desc; member in struct:wined3d_stream_info_element 2044 const struct wined3d_format_desc *format_desc; member in struct:IWineD3DResourceClass 2072 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 2178 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 2429 UINT surface_calculate_size(const struct wined3d_format_desc *format_desc, 2596 const struct wined3d_format_desc *format_desc; member in struct:wined3d_vertex_declaration_element 3026 BOOL getColorBits(const struct wined3d_format_desc *format_desc, 3028 BOOL getDepthStencilBits(const struct wined3d_format_desc *format_desc,
|
H A D | arb_program_shader.c | 6807 if (!is_complex_fixup(surface->resource.format_desc->color_fixup)) 6810 dump_color_fixup_desc(surface->resource.format_desc->color_fixup); 6819 fixup = get_complex_fixup(surface->resource.format_desc->color_fixup);
|
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/vbox/ |
H A D | VBoxDbgGl.c | 325 pSurf->currentDesc.Width, pSurf->currentDesc.Height, pSurf->resource.format_desc->glFormat, pSurf->resource.format_desc->glType);
|
/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/ |
H A D | VBoxDbgGl.c | 356 pSurf->currentDesc.Width, pSurf->currentDesc.Height, pSurf->resource.format_desc->glFormat, pSurf->resource.format_desc->glType);
|
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/vbox/ |
H A D | VBoxDbgGl.c | 325 pSurf->currentDesc.Width, pSurf->currentDesc.Height, pSurf->resource.format_desc->glFormat, pSurf->resource.format_desc->glType);
|
/vbox/src/VBox/Devices/Graphics/shaderlib/ |
H A D | wined3d_private.h | 888 si->elements[name].data, si->elements[name].stride, si->elements[name].format_desc->format, \ 978 const struct wined3d_format_desc *format_desc; member in struct:wined3d_stream_info_element 2079 const struct wined3d_format_desc *format_desc; member in struct:IWineD3DResourceClass 2107 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 2213 IWineD3DDeviceImpl *device, UINT size, DWORD usage, const struct wined3d_format_desc *format_desc, 2464 UINT surface_calculate_size(const struct wined3d_format_desc *format_desc, 2631 const struct wined3d_format_desc *format_desc; member in struct:wined3d_vertex_declaration_element 3061 BOOL getColorBits(const struct wined3d_format_desc *format_desc, 3063 BOOL getDepthStencilBits(const struct wined3d_format_desc *format_desc,
|
H A D | shader.c | 2066 args->color_fixup[i] = texture->resource.format_desc->color_fixup;
|