mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radeon: dPriv handling is now in cliprects code
This commit is contained in:
parent
9368dcb426
commit
86dcbb5457
1 changed files with 0 additions and 12 deletions
|
|
@ -55,15 +55,11 @@ static GLubyte *radeon_ptr32(const struct radeon_renderbuffer * rrb,
|
|||
GLint x, GLint y)
|
||||
{
|
||||
GLubyte *ptr = rrb->bo->ptr;
|
||||
const __DRIdrawablePrivate *dPriv = rrb->dPriv;
|
||||
uint32_t mask = RADEON_BO_FLAGS_MACRO_TILE | RADEON_BO_FLAGS_MICRO_TILE;
|
||||
GLint offset;
|
||||
GLint nmacroblkpl;
|
||||
GLint nmicroblkpl;
|
||||
|
||||
x += dPriv->x;
|
||||
y += dPriv->y;
|
||||
|
||||
if (rrb->has_surface || !(rrb->bo->flags & mask)) {
|
||||
offset = x * rrb->cpp + y * rrb->pitch;
|
||||
} else {
|
||||
|
|
@ -99,15 +95,11 @@ static GLubyte *radeon_ptr16(const struct radeon_renderbuffer * rrb,
|
|||
GLint x, GLint y)
|
||||
{
|
||||
GLubyte *ptr = rrb->bo->ptr;
|
||||
const __DRIdrawablePrivate *dPriv = rrb->dPriv;
|
||||
uint32_t mask = RADEON_BO_FLAGS_MACRO_TILE | RADEON_BO_FLAGS_MICRO_TILE;
|
||||
GLint offset;
|
||||
GLint nmacroblkpl;
|
||||
GLint nmicroblkpl;
|
||||
|
||||
x += dPriv->x;
|
||||
y += dPriv->y;
|
||||
|
||||
if (rrb->has_surface || !(rrb->bo->flags & mask)) {
|
||||
offset = x * rrb->cpp + y * rrb->pitch;
|
||||
} else {
|
||||
|
|
@ -143,7 +135,6 @@ static GLubyte *radeon_ptr(const struct radeon_renderbuffer * rrb,
|
|||
GLint x, GLint y)
|
||||
{
|
||||
GLubyte *ptr = rrb->bo->ptr;
|
||||
const __DRIdrawablePrivate *dPriv = rrb->dPriv;
|
||||
uint32_t mask = RADEON_BO_FLAGS_MACRO_TILE | RADEON_BO_FLAGS_MICRO_TILE;
|
||||
GLint offset;
|
||||
GLint microblkxs;
|
||||
|
|
@ -151,9 +142,6 @@ static GLubyte *radeon_ptr(const struct radeon_renderbuffer * rrb,
|
|||
GLint nmacroblkpl;
|
||||
GLint nmicroblkpl;
|
||||
|
||||
x += dPriv->x;
|
||||
y += dPriv->y;
|
||||
|
||||
if (rrb->has_surface || !(rrb->bo->flags & mask)) {
|
||||
offset = x * rrb->cpp + y * rrb->pitch;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue