*
**************************************************************************/
-#include "texobj.h"
-#include "intel_context.h"
+#include "main/texobj.h"
+#include "state_tracker/st_context.h"
#include "state_tracker/st_mipmap_tree.h"
#include "intel_tex.h"
intelDeleteTextureObject(GLcontext *ctx,
struct gl_texture_object *texObj)
{
- struct intel_context *intel = intel_context(ctx);
+ struct pipe_context *pipe = ctx->st->pipe;
struct st_texture_object *stObj = st_texture_object(texObj);
if (stObj->mt)
- st_miptree_release(intel->pipe, &stObj->mt);
+ st_miptree_release(pipe, &stObj->mt);
_mesa_delete_texture_object(ctx, texObj);
}
static void
intelFreeTextureImageData(GLcontext * ctx, struct gl_texture_image *texImage)
{
- struct intel_context *intel = intel_context(ctx);
+ struct pipe_context *pipe = ctx->st->pipe;
struct st_texture_image *stImage = st_texture_image(texImage);
DBG("%s\n", __FUNCTION__);
if (stImage->mt) {
- st_miptree_release(intel->pipe, &stImage->mt);
+ st_miptree_release(pipe, &stImage->mt);
}
if (texImage->Data) {
#include "intel_context.h"
#include "intel_tex.h"
+#include "state_tracker/st_context.h"
#include "state_tracker/st_mipmap_tree.h"
#include "pipe/p_context.h"
struct gl_texture_object *texObj,
struct gl_texture_image *texImage)
{
- struct intel_context *intel = intel_context(ctx);
+ struct pipe_context *pipe = ctx->st->pipe;
struct st_texture_image *intelImage = st_texture_image(texImage);
GLuint dstRowStride;
return;
if (intelImage->mt)
- intel->pipe->region_idle(intel->pipe, intelImage->mt->region);
+ pipe->region_idle(pipe, intelImage->mt->region);
+#if 0
LOCK_HARDWARE(intel);
+#endif
/* Map buffer if necessary. Need to lock to prevent other contexts
* from uploading the buffer under us.
*/
if (intelImage->mt)
- texImage->Data = st_miptree_image_map(intel->pipe,
+ texImage->Data = st_miptree_image_map(pipe,
intelImage->mt,
intelImage->face,
intelImage->level,
_mesa_unmap_teximage_pbo(ctx, packing);
if (intelImage->mt) {
- st_miptree_image_unmap(intel->pipe, intelImage->mt);
+ st_miptree_image_unmap(pipe, intelImage->mt);
texImage->Data = NULL;
}
+#if 0
UNLOCK_HARDWARE(intel);
+#endif
}