Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2,315
Issues
2,315
List
Boards
Labels
Service Desk
Milestones
Merge Requests
628
Merge Requests
628
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
mesa
Commits
1cf16414
Commit
1cf16414
authored
Apr 25, 2008
by
Brian Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gallium: remove unneeded st->bitmap_texcoord_bias
parent
332b77b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
16 deletions
+6
-16
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_bitmap.c
+2
-5
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_drawpixels.c
+2
-5
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_context.h
+0
-2
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_extensions.c
+2
-4
No files found.
src/mesa/state_tracker/st_cb_bitmap.c
View file @
1cf16414
...
...
@@ -355,11 +355,8 @@ setup_bitmap_vertex_data(struct st_context *st,
const
GLfloat
x1
=
x
+
width
;
const
GLfloat
y0
=
y
;
const
GLfloat
y1
=
y
+
height
;
const
GLfloat
bias
=
0
.
0
*
st
->
bitmap_texcoord_bias
;
/* XXX remove */
const
GLfloat
xBias
=
bias
/
(
x1
-
x0
);
const
GLfloat
yBias
=
bias
/
(
y1
-
y0
);
const
GLfloat
sLeft
=
0
.
0
+
xBias
,
sRight
=
1
.
0
+
xBias
;
const
GLfloat
tTop
=
yBias
,
tBot
=
1
.
0
-
tTop
-
yBias
;
const
GLfloat
sLeft
=
0
.
0
F
,
sRight
=
1
.
0
F
;
const
GLfloat
tTop
=
0
.
0
,
tBot
=
1
.
0
-
tTop
;
const
GLfloat
clip_x0
=
x0
/
fb_width
*
2
.
0
-
1
.
0
;
const
GLfloat
clip_y0
=
y0
/
fb_height
*
2
.
0
-
1
.
0
;
const
GLfloat
clip_x1
=
x1
/
fb_width
*
2
.
0
-
1
.
0
;
...
...
src/mesa/state_tracker/st_cb_drawpixels.c
View file @
1cf16414
...
...
@@ -425,11 +425,8 @@ draw_quad(GLcontext *ctx, GLfloat x0, GLfloat y0, GLfloat z,
const
GLfloat
clip_y0
=
y0
/
fb_height
*
2
.
0
-
1
.
0
;
const
GLfloat
clip_x1
=
x1
/
fb_width
*
2
.
0
-
1
.
0
;
const
GLfloat
clip_y1
=
y1
/
fb_height
*
2
.
0
-
1
.
0
;
GLfloat
bias
=
ctx
->
st
->
bitmap_texcoord_bias
;
GLfloat
xBias
=
0
*
bias
/
(
x1
-
x0
);
GLfloat
yBias
=
0
*
bias
/
(
y1
-
y0
);
GLfloat
sLeft
=
0
.
0
+
xBias
,
sRight
=
1
.
0
+
xBias
;
GLfloat
tTop
=
invertTex
-
yBias
,
tBot
=
1
.
0
-
tTop
-
yBias
;
const
GLfloat
sLeft
=
0
.
0
F
,
sRight
=
1
.
0
F
;
const
GLfloat
tTop
=
invertTex
,
tBot
=
1
.
0
-
tTop
;
GLuint
tex
,
i
;
/* upper-left */
...
...
src/mesa/state_tracker/st_context.h
View file @
1cf16414
...
...
@@ -123,8 +123,6 @@ struct st_context
GLfloat
polygon_offset_scale
;
/* ?? */
GLfloat
bitmap_texcoord_bias
;
/** Mapping from VERT_RESULT_x to post-transformed vertex slot */
const
GLuint
*
vertex_result_to_slot
;
...
...
src/mesa/state_tracker/st_extensions.c
View file @
1cf16414
...
...
@@ -109,9 +109,6 @@ void st_init_limits(struct st_context *st)
c
->
MaxTextureLodBias
=
screen
->
get_paramf
(
screen
,
PIPE_CAP_MAX_TEXTURE_LOD_BIAS
);
st
->
bitmap_texcoord_bias
=
screen
->
get_paramf
(
screen
,
PIPE_CAP_BITMAP_TEXCOORD_BIAS
);
c
->
MaxDrawBuffers
=
CLAMP
(
screen
->
get_param
(
screen
,
PIPE_CAP_MAX_RENDER_TARGETS
),
1
,
MAX_DRAW_BUFFERS
);
...
...
@@ -220,11 +217,12 @@ void st_init_extensions(struct st_context *st)
ctx
->
Extensions
.
EXT_texture_sRGB
=
GL_TRUE
;
}
#if 01
if (screen->is_format_supported(screen, PIPE_FORMAT_DXT5_RGBA,
PIPE_TEXTURE)) {
ctx->Extensions.EXT_texture_compression_s3tc = GL_TRUE;
}
#endif
if
(
screen
->
is_format_supported
(
screen
,
PIPE_FORMAT_YCBCR
,
PIPE_TEXTURE
)
||
screen
->
is_format_supported
(
screen
,
PIPE_FORMAT_YCBCR_REV
,
PIPE_TEXTURE
))
{
ctx
->
Extensions
.
MESA_ycbcr_texture
=
GL_TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment