mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
This initial version of the driver only supports glClear{,Color,Depth}()
for now.
Since the only publicly available documentation for the VideoCore 3D
architecture (the VideoCore IV 3D Architecture Reference Guide) just
covers an older revision of the VideoCore 3D architecture, I used
Mesa's v3d_packet.xml as a reference to get definitions for the control
records of the VideoCore VII.
To determine which control records need to be generated for a minimal
example, I used Mesa's `V3D_DEBUG` environment variable and set it to
`cl` to make it dump the control lists it generates for a basic OpenGL
test program.
38 lines
1021 B
C++
38 lines
1021 B
C++
/*
|
|
* Copyright (c) 2026, Sönke Holz <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "Image.h"
|
|
|
|
namespace V3DGPU {
|
|
|
|
Image::Image(void const* ownership_token, GPU::PixelFormat const& pixel_format, u32 width, u32 height, u32 depth, u32 max_levels)
|
|
: GPU::Image(ownership_token, pixel_format, width, height, depth, max_levels)
|
|
{
|
|
dbgln("V3DGPU::Image::Image(): unimplemented");
|
|
}
|
|
|
|
void Image::regenerate_mipmaps()
|
|
{
|
|
dbgln("V3DGPU::Image::regenerate_mipmaps(): unimplemented");
|
|
}
|
|
|
|
void Image::write_texels(u32, Vector3<i32> const&, void const*, GPU::ImageDataLayout const&)
|
|
{
|
|
dbgln("V3DGPU::Image::write_texels(): unimplemented");
|
|
}
|
|
|
|
void Image::read_texels(u32, Vector3<i32> const&, void*, GPU::ImageDataLayout const&) const
|
|
{
|
|
dbgln("V3DGPU::Image::read_texels(): unimplemented");
|
|
}
|
|
|
|
void Image::copy_texels(GPU::Image const&, u32, Vector3<u32> const&, Vector3<u32> const&, u32, Vector3<u32> const&)
|
|
{
|
|
dbgln("V3DGPU::Image::copy_texels(): unimplemented");
|
|
}
|
|
|
|
}
|